i have also tried the following: $ for file in `ls *.wav`;do lame -b 256 -q 0 "$file" "`basename "$file" .wav`".mp3;done i think this is fine apart from the first line, i think this is feeding each seperate word in a filename as a filename to the lame command, i think that it might actually be complicated to return a list of files that have spacenames and assign each whole filename to a variable am i wrong? bascule On Thursday 13 September 2001 10:18 pm, I wrote: > hi, > i have used the following to convert some homemade wavs into mp3s: > $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file > .wav`.mp3;done > > it works fine except for file names with spaces, i can't work out how to > rectify this, i have also tried: > $ for file in `ls *.wav`;do lame -b 256 -q 0 "$file" "`basename $file > .wav`.mp3";done > > and > $ for file in "`ls *.wav`";do lame -b 256 -q 0 "$file" "`basename $file > .wav`".mp3;done > > as you can see i've tried using "" around references to file names but this > hasn't helped, could someone please help me out > > tia > > bascule
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com