On 12/8/05, Thomas Springer <th.springer@xxxxxxx> wrote: > > By the way, if one wants to use lame to get in format wav all mp3 > > files in a directory, what should one do? > > Though this isn't advanced shell scripting it should what you aked for. > Get an idea on how to use bash. Others use /python/perl/... > > >>> Put it in a file > >>> Move file into your path, e.g ~/bin > >>> Chmod u+x > > #! /bin/sh > # mp3towav_conversion.sh > > number=0 > > cd $1 || exit 1 > > for file in *.mp3 > do > wavfile=`echo $file | sed -e "s/mp3/wav/g"` > echo $"Converting $file ..." > lame $file $wavfile > echo $"Done" > let "number += 1" > done > > echo $"$number file(s) converted" > > exit 0 > > > > $ mp3towav_conversion.sh $/path/to/dir$ Thanks for your script, Thomas. Paul