Hi Bogdan,
"$tag=~/xxx/" is a Perl regular express that evaluates to true if
the string "xxx" is inside the value of tag. This is different than
"eq" which tests for string equality.
You can use $tag=~/\btir\b/. The \b in a regular expression represents
a word boundary, so with this addition strings like "stiri" won't match.
In Windows, the outside quotes must be double. So use this:
exiftool -ApertureValue -if "$make eq 'Canon'" *.jpg
- Phil
(4)
]
