Skip to content

Instantly share code, notes, and snippets.

@pjobson
Last active August 17, 2017 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjobson/558b93621ea6573a562751a89831bfa8 to your computer and use it in GitHub Desktop.
Save pjobson/558b93621ea6573a562751a89831bfa8 to your computer and use it in GitHub Desktop.
#!/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