ExifTool Forum

ExifTool => Newbies => Topic started by: hachel on January 22, 2016, 08:44:08 AM

Title: If eq with wildcards
Post by: hachel on January 22, 2016, 08:44:08 AM
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
Title: Re: If eq with wildcards
Post by: Phil Harvey on January 22, 2016, 08:52:54 AM
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