#!/usr/bin/env zsh BASE=$1 DEST=$2 mkdir -p $DEST for f in $BASE/*.ogg; do ffmpeg -hide_banner -loglevel error -nostats -acodec libvorbis -i $f -acodec pcm_s16le "$DEST/$f:t:r".wav done