Skip to content

Instantly share code, notes, and snippets.

@icyflame
Created August 7, 2021 10:24
Show Gist options
  • Save icyflame/461fc98d0d30f8fe2eed78128138b784 to your computer and use it in GitHub Desktop.
Save icyflame/461fc98d0d30f8fe2eed78128138b784 to your computer and use it in GitHub Desktop.
Check all the files under the current folder to see whether they have EXIF data
#!/bin/bash
find . -type f | sort | while read fn;
do
exiftool "$fn" | grep -i 'date/time original' > /dev/null
if [[ "$?" == "1" ]];
then
echo "| NO EXIF DATA | $fn |"
else
echo "| FOUND EXIF DATA | $fn |"
fi
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment