Created
January 25, 2019 20:08
-
-
Save janbaer/4a37e97a163f77ab765303643e84751b to your computer and use it in GitHub Desktop.
Rename files that are located in the current directory
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 FILE in *.mp4; do | |
mv "$FILE" "`echo $FILE | sed -r "s/^(.+)_hd-froscon16.+.mp4$/\1.mp4"/`"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also take a look on mmv