Skip to content

Instantly share code, notes, and snippets.

@Hotfirenet
Created September 17, 2017 17:11
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 Hotfirenet/085c24b0248a8273a2497ba16b0b1ee8 to your computer and use it in GitHub Desktop.
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
#!/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