I’m trying to decode a bunch of (legally acquired, via emusic.com) mp3s to wavs so that I can then re-encode them to ogg vorbis @ q0.
I wanna have 24 hours of music on a single disc at work, that’s why.
Here’s what I’m doing:
$ for i in *.mp3; do mpg321 -w
basename $i .mp3.wav $i; done
Seems to work fine, as long as there are no spaces or special characters in the name. When there are special characters or spaces, however, basename hangs and mpg321 doesn’t touch the file.
Is there a way around this, without going through every file by hand and renaming it? I’ve also tried it as basename “$i” and basename ‘$i’.