Code: Select all
#!/bin/bash
for i in *.[Mm][Pp]3; do mv "$i" `echo $i | tr ' ' '_'`; done
for i in *.[Mm][Pp]3; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done
for i in *.mp3; do lame --decode $i `basename $i .mp3`.wav; done
normalize *.wav
cdrecord dev=ATAPI:0,0,0 speed=44 -pad -audio -v -gracetime=2 *.wav
rm *.wav
Don't forget to run chmod a+x on the file so that it is executable!
Notes: Just improved it a little bit, it now normalizes (emerge normalize) the .wav files and removes them after they're burnt. Also fixed the [Mm][Pp] thing in the first line. This little script should be pretty easy to alter if it doesn't fit you perfectly. Keep in mind too, this will change the names of you mp3's if they have spaces or caps in them.



