#! /bin/sh

#convert all track_##.wav files within the $HOME/mp3/noartist/unknown_disc/
#directory to all.ogg. Grip can generate files of the proper format.

#Note that some values may need to be changed.

cd $HOME/mp3/noartist/unknown_disc/
FILE_LIST=`find track_*`

for i in $FILE_LIST
do sox $i -t raw -r 44100 -ls -c 2 -
done | sox -t raw -r 44100 -ls -c 2 - all.wav

sox all.wav all.ogg

    Source: geocities.com/evilmrhenry