Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rename all mp3s in a folder to 8.3 (Assumes max 999 mp3s). Done for https://learn.adafruit.com/adabox004/loading-music-onto-the-sd-card
count=1; for file in *.mp3; do filename=`printf 'TRACK%03d' $count`; mv "$file" "$filename.mp3"; ((count++)); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.