Find files by the content of their metadata

Started by Guzman, March 24, 2015, 03:58:24 PM

Previous topic - Next topic

Guzman

I would find all the .jpg images in the /tmp directory whose Artist is guzman and Model is nikon.

Is there any way to do this?

Alan Clifford


exiftool -filename -artist -model -if '$artist =~ /cliff/i && $model =~ /nikon/i'  -ext jpg .


seems to work

======== ./ahc_3182.jpg
File Name                       : ahc_3182.jpg
Artist                          : Alan Clifford
Camera Model Name               : NIKON D7000
======== ./ahc_5850_cr.jpg
File Name                       : ahc_5850_cr.jpg
Artist                          : Alan Clifford
Camera Model Name               : NIKON D7000
======== ./ahc_7051.jpg
File Name                       : ahc_7051.jpg
Artist                          : Alan Clifford
Camera Model Name               : NIKON D7000