Created
March 11, 2016 10:26
-
-
Save oskarnrk/d309b6d0b5682036b929 to your computer and use it in GitHub Desktop.
Rename photos using EXIF date and time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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