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/
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/