Created
January 29, 2014 17:26
-
-
Save jamiecurran/8692755 to your computer and use it in GitHub Desktop.
mass rename of media files.
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
for f in *.MTS; do filename=$(basename $f .MTS); new_filename=$(exiftool -q -p '$DateTimeOriginal' $f | tr ' ' '_' | sed 's/+00:00//'); touch -r $f $filename.mp4; mv $filename.mp4 $new_filename.mp4; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment