Created
September 26, 2011 03:42
-
-
Save jordanmaguire/1241562 to your computer and use it in GitHub Desktop.
Recursively rename a bunch of files
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
#!/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