Skip to content

Instantly share code, notes, and snippets.

@janbaer
Created January 25, 2019 20:08
Show Gist options
  • Save janbaer/4a37e97a163f77ab765303643e84751b to your computer and use it in GitHub Desktop.
Save janbaer/4a37e97a163f77ab765303643e84751b to your computer and use it in GitHub Desktop.

Revisions

  1. janbaer created this gist Jan 25, 2019.
    3 changes: 3 additions & 0 deletions rename.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    for FILE in *.mp4; do
    mv "$FILE" "`echo $FILE | sed -r "s/^(.+)_hd-froscon16.+.mp4$/\1.mp4"/`";
    done