exiftool / exiftool

ExifTool meta information reader/writer

Home Page:https://exiftool.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use negative conditional?

AtomicNess123 opened this issue · comments

I saw in the manual the following example:

-if '$CreateDate ge "2006:04:02"'

What would be the negative equivalent? (if createdate IS NOT "0000:00:00").
Thanks!

You would use
exiftool -if '$CreateDate ne "0000:00:00" ' <more options>

or this would work as well
exiftool -if '$CreateDate gt "0000:00:00" ' <more options>

The ne, ge, and gt are Perl string relational operators.

Wonderful, thanks!