for i in *.wma; do name=`echo "$i" | cut -d'.' -f1` echo "$name" ffmpeg -i "$i" -acodec libopus -b:a 192k "${name}.ogg" done