Skip to content

Instantly share code, notes, and snippets.

@glw
Created April 13, 2018 16:40
Show Gist options
  • Save glw/68deba7ce064bbcc9970beadb87baeb7 to your computer and use it in GitHub Desktop.
Save glw/68deba7ce064bbcc9970beadb87baeb7 to your computer and use it in GitHub Desktop.
search for altitude in image exif tags output to csv
echo "name, altitude" > output.csv
for tif in ./path/to/images/0003/*.TIF; do
name=$(exiftool $tif | grep 'Original Raw File Name')
alt=$(exiftool $tif | grep 'GPS Altitude :')
echo "$name, $alt" >> output.csv
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment