The lossless2lossy.sh script does not give enough good functions to split *.ape files into tracks. The below solves the problem in Fedora 12.
Install the needed tools:
sudo yum -y install bchunk shntool cuetools
Download the latest Nero Acc encoder/decoder from the Nero website and uncompress it to ~/bin folder. Make sure that ~/bin is in your path. Make sure you have ffmpeg, best would be having recompiled it as described in my previous article.
All is ready, convert an ape file into pcm wap:
ffmpeg -i cd.ape converted.wav
Convert into lame mp3 (options can be specified):
shnsplit -o 'cust ext=mp3 lame --preset insane --quiet - %f' -f "cd.cue" -t "%n.%p - %a - %t" converted.wav
Convert into NeroAac (iPod-ready, options can be specified):
shnsplit -o 'cust ext=m4a neroAacEnc -q .62 -if - -of %f' -f "cd.cue" -t "%n.%p - %a - %t" converted.wav
The output will be a bunch of tracks in the desired format. That simple!