> o=$(echo "$i" | sed -e "s/mp3/wav/")
>
> This script lists the mp3 files in the current directory, converts the
> mp3 extention to wav using sed, and then does the conversion.
Be careful when using sed to change extensions, what if you have an mp3
called something like "foo thump3.mp3", sed will turn it into "foo
thuwav.mp3". I know it's not as cool as using sed to do it, but basename
generally leads to more consistent results in this case.
o="$(basename $i .mp3).wav"
--Nick