Last active
August 17, 2017 16:30
-
-
Save pjobson/558b93621ea6573a562751a89831bfa8 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# REQUIRES | |
# apt install cuetools shntool flac | |
# EXPECTS | |
# flacSplit.sh file.flac file.cue | |
flacFile=$1 | |
cueFile=$2 | |
echo "Splitting $flacFile" | |
shnsplit -f "$cueFile" -t %n-%t -o flac "$flacFile" | |
echo "Removing Pregap File" | |
rm -rf 00-pregap.flac | |
echo "Tagging Files" | |
cuetag "$cueFile" [0-9]*.flac | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment