Skip to content

Instantly share code, notes, and snippets.

@tschager
Created December 8, 2014 13:17
Show Gist options
  • Save tschager/085d497797a82370df89 to your computer and use it in GitHub Desktop.
Save tschager/085d497797a82370df89 to your computer and use it in GitHub Desktop.
Grep in comment section of JPEG Exif metadata
for i in *.jpg
do
if exiftool "$i" | grep -q "Comment.*$1.*"; then
echo $i
exiftool "$i" | grep "Comment.*$1.*"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment