Created
March 13, 2022 23:17
-
-
Save Morozov-5F/b482552851da4a1e722640f66f222149 to your computer and use it in GitHub Desktop.
Split flac+cue into separate flac files
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
find "$1" -type f -name "*.flac" -exec split_cue.sh {} \; |
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/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