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

Posted on Wed Dec 19 14:10:52 2007 by exiftool in response to 6723 (See the whole thread of 5)
Re: using -if with DateTimeOriginal to test for Null Data
Hi Brooks,

I'm not sure what you mean by NULL. Is the date an empty string, or all zeros, or missing entirely? How about this: Set the date/time only if it doesn't begin with a 1 or a 2:

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

- Phil
Direct Responses: 6725 | Write a response