rm2mp3 :
#!/bin/sh
rep=`pwd`
cd "$rep/$1"
for file in *.rm ; do
 wav="${file%rm}wav";
 mp3="${file%rm}mp3";
 mplayer -vo null -ao pcm:file="$wav"  "$file";
 lame "$wav" "$mp3";
 rm "$wav";
done
cd $rep



m4a2mp3 :
# m4a to wav
for i in *.m4a
do
faad "$i"
x=`echo "$i"|sed -e 's/.m4a/.wav/'`
y=`echo "$i"|sed -e 's/.m4a/.mp3/'`
lame -h -b 192 "$x" "$y"
rm "$x"
done