#!/bin/sh TMP=/tmp/$(basename $0)-$$ j=9 mkdir $TMP || { echo "Can't make temp dir $TMP"; exit 1; } find "$1" -name '*.mp3' -o -name '*.ogg' | sort | \ while read i; do j=$(($j+1)); mp32wav "$i" $TMP/$j.wav; done # normalize -m $TMP/*.wav burn-audio $TMP/*.wav && rm -r $TMP