Image-ExifTool - Re: Conditional processing (-if) question

Posted on Sun Apr 13 01:48:15 2008 by exiftool in response to 7650 (See the whole thread of 3)
Re: Conditional processing (-if) question
Hi Mixx,

I'll assume you are using the right quotes for your shell, although all Windows shells I know would require the double quotes on the outside. ie. "$model eq 'DMC-FZ5'"

It is possible there are spaces after the model name, which would break the match for "eq". If this is the problem, searching for a substring instead will get things working for you. ie. "$model =~ /DMC-FZ5/"

- Phil
Direct Responses: 7652 | Write a response