Created
October 3, 2018 06:49
-
-
Save ptflp/45d975672cd710f064ed2e51fa2f4da0 to your computer and use it in GitHub Desktop.
Iteratively rename downloaded mp3 files from Fiddler 2 with regex
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 | |
for file in *.mp3*; do | |
if [ -e "$file" ]; then | |
newname=`echo "$file" | sed 's/#.*//'` | |
mv "$file" "$newname" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment