Last active
April 7, 2017 20:57
-
-
Save sillage/531ca43c925cfc113b9b to your computer and use it in GitHub Desktop.
Rename pictures with Exif DateTimeOriginal prefix
This file contains hidden or 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
#! /bin/sh | |
# Rename pictures with Exif DateTimeOriginal prefix | |
# format: YYYYmmdd_HHMMSS_:basename: | |
exiv2 -r '%Y%m%d_%H%M%S_:basename:' rename $(ls *.JPG *.jpg 2>/dev/null) | |
# format (Dropbox like): YYYY-mm-dd HH.MM.SS_:basename: | |
# exiv2 -r '%Y-%m-%d %H.%M.%S_:basename:' rename $(ls *.JPG *.jpg 2>/dev/null) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment