Ok, I am writing a shell script to automate the encoding of cds to ogg using cdparanoia and then oggenc. It will take the track01.cdda.wav file and name it from a naming file that you input before hand. It works, mostly. I have an iteration problem, and I cant figure out a way around it, as I have only been scripting for a few days now, with whatever info I can find on the net. Here is the code, the problem is fairly obvious.
Code:
echo "what is the name of your title file?"
read title_file                             
cdparanoia -Q          
cdparanoia -vwB        
for i in *.wav; do
        for t in `cat "$title_file"`;do                                                                     
        oggenc "$i" -q 5 -t "$t"
        done                  
rm -f "$i".wav                
done