Last active
May 13, 2016 06:27
-
-
Save xpol/f152c7fabab050bc53ec to your computer and use it in GitHub Desktop.
Rename photos by exif date
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
for fil in *.jpg; do datepath="$(identify -verbose $fil | grep DateTimeOri | awk '{print $2"-"$3 }' | sed s%:%%g)"; mv -v $fil $datepath.jpg; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment