Skip to content

Instantly share code, notes, and snippets.

@jordanmaguire
Created September 26, 2011 03:42
Show Gist options
  • Save jordanmaguire/1241562 to your computer and use it in GitHub Desktop.
Save jordanmaguire/1241562 to your computer and use it in GitHub Desktop.
Recursively rename a bunch of files
#!/bin/bash
IFS=$'\n'
for FILE in `find . -name "*.wma.MP3" -type f`
do
mv $FILE `echo $FILE | sed s/.wma.MP3/.mp3/g`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment