I'm getting ready to rip, and convert to .mp3, a 64 disk set, the KJV Bible. The cd's are not on freedb so the filenames come out track_01.wav, track_02.wav, etc.
This is the script, I'll use to rename them during the conversion ... with the trouble spot marked XXX.
Code:
for file in tmp/*.wav; do lame -m m -V 7 "$file" "Genesis XXX.mp3"; done
I need a way to replace XXX with an incremental counter so they'll be named Genesis 1.mp3, Genesis 2.mp3, etc. It would be nice if I could precede 1 digit numbers with a 0, (Genesis 01, etc.) to keep things in order by filename, but I can live without that. A complicating factor is that I need to start the counter at an arbitrary point. The 2nd disk will rip as track_01.wav again, but it needs to be converted as 'Genesis 23.'
I could also just use a script to change the filenames en masse before or after the conversion if that seemed like the logical way to go about it, but it still seems to me that I'll need that variable to be applied as part of the file name.