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.
Rename the files by finding the Pattern
for file in *.mp3; do
mv "$file" "${file// /-}"
#replace space with -
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment