Image-ExifTool - Re: using -if with DateTimeOriginal to test for Null Data

Posted on Wed Dec 19 14:14:41 2007 by exiftool in response to 6724 (See the whole thread of 5)
Re: using -if with DateTimeOriginal to test for Null Data
Oh. But that didn't handle the case that the date/time is missing. Try this instead:

-if "not $dateTimeOriginal or $dateTimeOriginal !~ /^[12]/"

(you were close with "NOT $dateTimeOriginal", but the logical operators are all lower case in Perl.)

- Phil
Direct Responses: 6727 | Write a response