Hello,
I'm trying to select file for post-processing based on keyword/tags which where either input by digikam, either by exiftool.
Problem, It doesn't match and I don't understand why:
$ exiftool -a -u -g1 20120716_034751--DSC_0613.JPG |grep -i couch
Last Keyword XMP : voyageurs/couchsurfers
Subject : couchsurfers
Tags List : voyageurs/couchsurfers
Hierarchical Subject : voyageurs|couchsurfers
Keywords : couchsurfers
$ t=couchsurfers exiftool -p '$directory/$filename' -if "(\$keywords=~/$t/)" -r -ext jpg 20120716_000140--DSC_0199.JPG
1 files failed condition
$ t=couchsurfers exiftool -p '$directory/$filename' -if "((\$taglist=~/$t/ or \$keywords=~/$t/ or \$subject=~/$t/))" -r -ext jpg 20120716_000140--DSC_0199.JPG
1 files failed condition
where is the error ?
Thanks a lot.
Cheers,
Julien
Note: exiftool from lubuntu 12.04 (8.97-precise~ppa1)
I'm not sure about your command syntax. This doesn't work for me:
t=couchsurfers exiftool -echo "$t"
But this does:
exiftool -echo "couchsurfers"
- Phil