Skip to content

Instantly share code, notes, and snippets.

@jiahaog
Created September 20, 2019 05:09
Show Gist options
  • Save jiahaog/9dac766bcd29ea33b2ae0133307b7620 to your computer and use it in GitHub Desktop.
Save jiahaog/9dac766bcd29ea33b2ae0133307b7620 to your computer and use it in GitHub Desktop.
Exiftool

Get names of all geotagged photos with Exiftool:

find . -type f -exec sh -c "exiftool {} -GPSLatitude | grep 'GPS' 2>&1 >/dev/null"  \; -print >> withgps.txt

Move them to another directory:

cat withgps.txt | xargs -I '{}' mv {} with_gps/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment