Posted on 2009-06-29 12:29:08-07 by ropewalker
Problem with -if command line option
Hello, there is an example in the doc which seems not to work for me:
exiftool -shutterspeed -if '$make eq "Canon"' dir
The condition failes, but I do not know why. I use windows command line application.
checking the make in the dir:
D:\Foto\2009\06\2009-06-07>exiftool -make . ======== ./IMG_20090607_094808_5249.JPG Make : Canon ======== ./IMG_20090607_094810_5250.JPG Make : Canon ======== ./IMG_20090607_094836_5252.JPG Make : Canon ...
D:\Foto\2009\06\2009-06-07>exiftool -shutterspeed -if '$make eq "Canon"' . 1 directories scanned 56 files failed condition 0 image files read
What am I doing wrong? Thanks
Direct Responses: 11080 | Write a response
Posted on 2009-06-29 13:46:23-07 by exiftool in response to 11079
Re: Problem with -if command line option
You need to use double quotes in Windows:

exiftool -shutterspeed -if "$make eq 'Canon'" dir

- Phil
Direct Responses: 11084 | Write a response
Posted on 2009-06-29 19:03:06-07 by ropewalker in response to 11080
Re: Problem with -if command line option
Thank you very much for the fast response (and the tool, of course)
Peter
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.