sudo apt-get install flac wavpack

Splitting the APE and FLAC files

cuebreakpoints *.cue | shnsplit -o flac *.ape ;

cuebreakpoints *.cue | shnsplit -o flac *.flac ;

After the splitting is complete

Adding tags to the FLAC files so we'll see the song details (name, artist, etc) in our audio player

cuetag *.cue split-track*.flac ;

shntool conv -o flac *.ape

Shnsplit requires a list of break-points with which to split an audio file. Conveniently, cuebreakpoints (part of cuetools) prints the break-points from a cue or toc file in a format that can be used by shnsplit.Now, to split an APE file into multiple FLAC files (without the need to type the name of the .ape and .flac files), use the terminal to navigate to the folder where the APE file is located and type this in the terminal:To convert a large FLAC file intro multiple FLAC files (songs), the same as above, navigate using the terminal to the folder where the FLAC file is located and run this in the terminal:As you can see, the output file format is specified via the "-o" option. If you don’t specify an output format your split files will be in shntool’s default format (i.e., wave files, "wav")., you will find in that folder some files named: split-track01.flac, split-track02.flac ... split-trackNN.flac. Each of that files is a song from the APE file. You can specify your own prefix (instead of "split-track") via the "-a" option.You will need "cuetag" for this which is part of the "cuetools" but since you already installed it (see previous seps), all you have to do is open the terminal, navigate to the folder where you just splitted some APE or FLAC files and type this:(if you didn't change the file's name from split-trackNN.flac). All the split-track*.flac files will have tags in just a few seconds.You can also conver an single .ape file to a single .flac file. To convert all .ape files in a directory to flac using shntool: