Last active
December 15, 2015 21:39
-
-
Save jamiecurran/5327370 to your computer and use it in GitHub Desktop.
Rename MTS files using created timestamp
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
IFS=$'\n' | |
for f in `find *`; do mv $f $(exiftool -q -p '$DateTimeOriginal' $f | tr ' ' '_' | tr ':' '_').MTS; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for f in$f /home/jamie/videos/resorted/$ (exiftool -q -p '$DateTimeOriginal' $f | tr ' ' '' | tr ':' '').MTS; done
find *
; do cp -v