Skip to content

Instantly share code, notes, and snippets.

@HeLiBloks
Last active May 31, 2017 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HeLiBloks/5513abf9e3193a090fced39f3ec7d910 to your computer and use it in GitHub Desktop.
Save HeLiBloks/5513abf9e3193a090fced39f3ec7d910 to your computer and use it in GitHub Desktop.

exiftool cheatsheet

Rename files to datestamp

Filename looks like 2016-01-01 12:00:00.jpg

exiftool '-FileName<DateTimeOriginal' -d "%Y-%m-%d %H.%M.%S%%-c.%%e"

Geo info into CSV file

exiftool -csv -filename -imagesize -gps:GPSLatitude -gps:GPSLongitude ./ > long.csv

Rename caps in filenames to lowercase

rename -e 'y/[A-Z]/[a-z]/' *.filetype

Lowercase fileending

rename 's/(.[A-Z]+$)/lc($1)/ge' .[A-Z]

zmv '(**/)(*).(#i)jpg' '$1$2.jpg'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment