mp3 to audio CD
phhs80 at gmail.com
Thu Dec 8 12:55:52 UTC 2005
On 12/8/05, Thomas Springer <th.springer at gmx.net> 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
> cd $1 || exit 1
> for file in *.mp3
> wavfile=`echo $file | sed -e "s/mp3/wav/g"`
> echo $"Converting $file ..."
> lame $file $wavfile
> echo $"Done"
> let "number += 1"
> echo $"$number file(s) converted"
> exit 0
> $ mp3towav_conversion.sh $/path/to/dir$
Thanks for your script, Thomas.
More information about the fedora-list