.mp3 to .ogg

mp32ogg
# for i in *.mp3; do  if [ -e "$i" ]; then wav=`echo "$i"|sed -e 's/.[mM][pP]3/.wav/'` notag=`echo "$i"|sed -e 's/.[mM][pP]3/.ogg/'` mpg123 --wav "$wav" "$i" oggenc -q 3 -o "$notag" "$wav" rm -f $wav fi done
 * 1) !/bin/sh
 * 1) mp3 to ogg

Dependencies
mpg123 and oggenc (vorbis-tools)