Created
September 17, 2017 17:11
-
-
Save Hotfirenet/085c24b0248a8273a2497ba16b0b1ee8 to your computer and use it in GitHub Desktop.
Script bash qui permet de renommer une photo au format anneemoisjour_heureminuteseconde via la date de prise de vue
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
#!/usr/bin/env bash | |
for f in *.jpg | |
do | |
mv -n "$f" "$(exiftool -d "%Y%m%d_%H%M%S" -CreateDate "$f" | awk '{print $4".jpg"}')" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment