[Originally posted by visualintel on 2009-08-05 02:29:36-07]
How do I search pictures based on a keyword in the "comments" field and copy/move those pictures to a new subfolder named based on the keyword?
For example, I have a folder of 1000+ properly tagged (in the comments field) pictures. I hope to run the ExifTool and search for keyword "school" in the comments field and then copy/move all those pictures contain the keyword "school" in the comments field to a new subfolder named "school".
Thanks!
[Originally posted by exiftool on 2009-08-11 17:31:32-07]
The command looks something like this:
exiftool -if "$comment =~ /school/i" -directory=%d/school DIR
where DIR is your directory name. Note you must use single
quotes instead of double quotes if running in Unix or Mac OS X.
Also, I don't think you really want to use the Comment tag. Run
"exiftool -s" to see the tag name that you should use.
- Phil