Skip to content

Instantly share code, notes, and snippets.

@Morozov-5F
Created March 13, 2022 23:17
Show Gist options
  • Save Morozov-5F/b482552851da4a1e722640f66f222149 to your computer and use it in GitHub Desktop.
Save Morozov-5F/b482552851da4a1e722640f66f222149 to your computer and use it in GitHub Desktop.
Split flac+cue into separate flac files
find "$1" -type f -name "*.flac" -exec split_cue.sh {} \;
#!/bin/sh
TRACK_PATH="$1"
FORMAT="%n %t"
TRACK_DIR=$(dirname "${TRACK_PATH}")
TRACK_NAME=$(basename "${TRACK_PATH}")
cd "${TRACK_DIR}"
shnsplit -t "%n %t" -o flac -f *.cue *.flac
rm -rf 00*
mv ${TRACK_NAME} ${TRACK_NAME}.backup
cuetag.sh *.cue *.flac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment