Skip to content

Instantly share code, notes, and snippets.

@nikmartin
Last active December 30, 2019 16:05
Show Gist options
  • Save nikmartin/a70f500a41b051a1bdd137d415d5d900 to your computer and use it in GitHub Desktop.
Save nikmartin/a70f500a41b051a1bdd137d415d5d900 to your computer and use it in GitHub Desktop.
Cleanup your mp3 directory
1. install mp3val
2. find . -name "*.mp3" -print0 | xargs -0 mp3val -si -f -t -nb
rename double extensions
shopt -s globstar
for i in **/*.mp3.mp3; do
echo mv -nv -- "$i" "${s/\.mp3\.mp3/\.mp3/g}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment