Skip to content

Instantly share code, notes, and snippets.

@jamiecurran
Last active December 15, 2015 21:39
Show Gist options
  • Save jamiecurran/5327370 to your computer and use it in GitHub Desktop.
Save jamiecurran/5327370 to your computer and use it in GitHub Desktop.
Rename MTS files using created timestamp
IFS=$'\n'
for f in `find *`; do mv $f $(exiftool -q -p '$DateTimeOriginal' $f | tr ' ' '_' | tr ':' '_').MTS; done
@jamiecurran
Copy link
Author

for f in find *; do cp -v $f /home/jamie/videos/resorted/$(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