Shell: Batch-Konvertierung von .ogg zu .mp3

Alle ogg-Dateien im Verzeichnis in das MP3-Format umwandeln:

for i in *.ogg; do ffmpeg -i "$i" -acodec libmp3lame "${i%.*}.mp3"; done

Als Voraussetzung wird das Paket „ffmpeg“ benötigt (sudo apt install ffmpeg), danach wird mit „cd“ in den gewünschten Ordner gewechselt…