# wav2mp3 # converts from mp3 to wav # coreutils must be installed! input=$1 name=`basename "$input" .wav` dir=`dirname "$input" output="${name}.mp3" # Using lame: if test -f "$dir/$output" then echo "$input not converted... $dir/$output already exists!" else lame -h "$input" "$dir/$output" fi