Created
November 19, 2019 16:59
-
-
Save dragonman225/db5d49d5370934ca0de0f2eda88b5ff9 to your computer and use it in GitHub Desktop.
Split a WAV or FLAC disc image with CUE sheet into individual FLAC tracks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir out | |
# if flac exists, split flac. | |
if [ -f CDImage.flac ]; then | |
echo "FLAC found." | |
shnsplit -f CDImage.cue -t "%n. %t" -d out -o flac CDImage.flac | |
# else if wav exists, split wav. | |
elif [ -f CDImage.wav ]; then | |
echo "WAV found." | |
shnsplit -f CDImage.cue -t "%n. %t" -d out -o flac CDImage.wav | |
else | |
echo "Neither CDImage.flac nor CDImage.wav is found." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment