Skip to content

Instantly share code, notes, and snippets.

@marcaurele
Last active April 9, 2022 14:44
Show Gist options
  • Save marcaurele/359b6b1a066d91fa078c7a9bf68ca00f to your computer and use it in GitHub Desktop.
Save marcaurele/359b6b1a066d91fa078c7a9bf68ca00f to your computer and use it in GitHub Desktop.
Rename my photos with my preferred datetime format
for i in $( ls *.JPG ); do exiv2 -v -r '%Y-%m-%d_%Hh%M%m%S' rename "$i"; done
for i in $( ls *.JPG ); do mv $i ${i%%.JPG}.jpg; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment