Hello. Sorry for the bad English (i'm russian). I have a lot of files:
photo_08910@13-01-2022_23-22-01.jpg, photo_09132@31-01-2022_17-53-49.jpg, photo_09240@07-02-2022_21-42-35.jpg etc. Overall view: photo_#####@DD-MM-YYYY_HH-MM-SS.jpg
How can I setting "dateTimeOriginal"-tag from a date embedded in the file name? Best regards.
You would have to use regex (regular expressions) to reorganize the dates and drop the leading digits
exiftool "-DateTimeOriginal<${Filename;s/.*@(\d\d)-(\d\d)-(\d{4})/$3$2$1/}" /path/to/files/
Thank you!! (https://giphy.com/gifs/kindafunny-thank-you-kinda-funny-greg-miller-RipfZWzjUDH25euMpM)
(https://media1.giphy.com/media/tXTqLBYNf0N7W/giphy.gif)