Skip to content

Instantly share code, notes, and snippets.

@oskarnrk
Created March 11, 2016 10:26
Show Gist options
  • Save oskarnrk/d309b6d0b5682036b929 to your computer and use it in GitHub Desktop.
Save oskarnrk/d309b6d0b5682036b929 to your computer and use it in GitHub Desktop.
Rename photos using EXIF date and time
#!/bin/sh
#for f in *
#do
# moddate=$(date -r "$f" +"%Y%m%d_%H%M%S")
# mv "$f" "IMG_$moddate.jpg"
#done
exiftool -v '-filename<datetimeoriginal' IMG_%Y%m%d_%H%M.jpg *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment