Skip to content

Instantly share code, notes, and snippets.

@ramchandev
Last active September 14, 2018 06:09
Show Gist options
  • Save ramchandev/07b5566e33e6afe563e76091815cec2b to your computer and use it in GitHub Desktop.
Save ramchandev/07b5566e33e6afe563e76091815cec2b to your computer and use it in GitHub Desktop.

Revisions

  1. ramchandev revised this gist Sep 14, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion rename-files.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    for file in *.mp3; do
    mv "$file" "${file// /-}" //Replace space with -
    mv "$file" "${file// /-}"
    #replace space with -
    done
  2. ramchandev created this gist Sep 14, 2018.
    3 changes: 3 additions & 0 deletions rename-files.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    for file in *.mp3; do
    mv "$file" "${file// /-}" //Replace space with -
    done