find . -name "*.wma" | while read ; do ogg=${REPLY/wma/}ogg [ -e $ogg ] && mplayer -vc null -vo null -ao pcm:fast "$REPLY" && \ oggenc -b 64 audiodump.wav && \ mv audiodump.ogg "$ogg" done