http://www.rockhounding.net/docs/cd-burning/
http://www.holland-consulting.net/tech/obsdmp3.html
I've made really small modifications to the original script.
Code:
#!/bin/bash
FILE=cddbinfo.txt
# Add -v to line below if you want to see what cdparanoia does
cdparanoia -B
# This is a bogugtrack which is sometimes created
# Delete it if present
bogus_track=track00.cdda.wav
[ -f "$bogus_track" ] && rm $bogus_track
for i in *.wav; do
mp3file=$(basename $i .wav)
lame -cbr -b 192 -q 2 -k -t -p $i $mp3file.mp3
[ $? -eq 0 ] && rm $i
done
# I don't have this
#mp3cddb *.mp3
#[ -f $FILE ] && mp3cddbtag $FILE