Last active
March 11, 2018 12:41
-
-
Save asperduti/e94ed905ea985a84003fd8530a2cbced to your computer and use it in GitHub Desktop.
Bash script to rename all the files with an extension(in this case, MP4). The new name is going to have the creation date.
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 f in *.MP4; do mv -n "$f" "VID_$(date -r "$f" +"%Y%m%d_%H%M%S").mp4"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment