Last active
April 9, 2022 14:44
-
-
Save marcaurele/359b6b1a066d91fa078c7a9bf68ca00f to your computer and use it in GitHub Desktop.
Rename my photos with my preferred datetime format
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 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