#!/bin/sh
# christo chris@uk.com 05/04/05
# convert all the mp3s in this folder to wav format, keeping the originals intact
for MP3 in *.mp3
do
WAV="${MP3%.mp3}.wav"
echo "Converting $MP3 to $WAV"
[ ! -s "${WAV}" ] && (mpg123 -b 10000 -s "$MP3" |
sox -s -w -c2 -t raw -r 44100 - -t wav -> "$MP3".wav)
done
christo