Splitting CUE / FLAC Files

Occationally, I keep sound recordings in a single large flac file for long time storage. Most times I remember to create a cue sheet, which at a later date allows me to split the flac file in a relatively simple manner.

As I never can remember how, here is the recipe on how to split the recordings according to the cue sheet and encode the content as individual mp3 files:

shntool split -t '%n-%t' \
-o 'cust ext=mp3 lame -V 0 --quiet - %f' \
-f filename.cue filename.flac

Hopefully a sufficient number of copies will exist on The Net, and survieve threats like hard disk crashes, and be indexed to allow for me to find it, when I need it next time ...