Skip to content

Instantly share code, notes, and snippets.

@pr4wn
Created December 23, 2023 14:16
Show Gist options
  • Save pr4wn/b3d7a9a02d17525ad8e4508a9c3ad20f to your computer and use it in GitHub Desktop.
Save pr4wn/b3d7a9a02d17525ad8e4508a9c3ad20f to your computer and use it in GitHub Desktop.
A script to recursively split mp3 backup files into chapters using cue file
#!/usr/bin/fish
for x in (find -type f -name "*.cue")
set fn (basename --suffix=".cue" $x)
set dir (dirname $x)
mp3splt -c "$dir/$fn.cue" "$dir/$fn.mp3" -n -o "@n_@f_@t" && rm "$dir/$fn.cue" "$dir/$fn.mp3"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment