Skip to content

Instantly share code, notes, and snippets.

@gelicia
Last active May 24, 2018 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gelicia/8c8046b931e8937a809d1b1e136e63fa to your computer and use it in GitHub Desktop.
Save gelicia/8c8046b931e8937a809d1b1e136e63fa to your computer and use it in GitHub Desktop.
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