Last active
May 24, 2018 00:13
-
-
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
This file contains hidden or 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
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