If eq with wildcards

Started by hachel, January 22, 2016, 08:44:08 AM

Previous topic - Next topic

hachel

Hi there, I'm trying to find all jpg's in a Folder that have a time of 00:00:00 (but a date) in their date/time original.
So for example I'm trying to find files with this date/time original: 2014:04:12 00:00:00 but not this: 2014:04:12 00:00:01.
The way I'm imagining it is exiftool . -r -if '($datetimeoriginal eq "*:*:* 00:00:00")' but only I don't know what to use as wildcards.
Is it possible like this or is there a more elegant method?

Thanks in advance

Phil Harvey

Try this:

exiftool . -r -if '$datetimeorginal =~ /00:00:00/'

Google for "Perl regular expressions" if you want to learn more about how this works.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).