Wma2mp3 script unsing mplayer and lame

since you have installed mplayer and mp3encoder lame, you can use this script to convert the .wma files in your current directory into .mp3 - files. for i in `ls | sed 's/ /_123BLANK_/g' | grep .wma` ; do { wma=$(echo $i | sed 's/_123BLANK_/ /g'); #fileman wmafile wav=$(echo $wma | sed 's/.wma/\.wav/g'); #filenname wavfile mp3=$(echo $wma | sed 's/.wma/\.mp3/g'); #filenname mp3 mplayer "$wma" -ao pcm -aofile "$wav" && lame "$wav" "$mp3" && rm "$wav" && rm "$wma"; } done;
 * 1) !/bin/sh
 * 2) name: wma2mp3.sh
 * 3) hundfred
 * 4) date: june 2004
 * 5) converts .wma files in the current directory to .mp3 files
 * 6) requires lame mp3 encoder and to decode the wma-files;
 * 7) mplayer is needed
 * 1) mplayer is needed