Converts a single FLAC file with associated cue file into multiple FLAC files

shnsplit -o flac -t "%n - %t - %a" -f sample.cue sample.flac
Split flac or ape file to track with filename from cuetag file.
Sample Output
shnsplit -o flac -t "%n - %t - %a" -f Son\ Ca\ 7B.cue Son\ Ca\ 7B.flac 

shnsplit: warning: discarding initial zero-valued split point
Splitting [Son Ca 7B.flac] (44:28.52) --> [01 - Nhu Canh Vac Bay - Son Ca 7B.flac] (5:02.22) : 100% OK
Splitting [Son Ca 7B.flac] (44:28.52) --> [02 - Bien Nho - Son Ca 7B.flac] (4:50.29) : 100% OK
Splitting [Son Ca 7B.flac] (44:28.52) --> [03 - Ru Em Tung Ngon Xuan Nong - Son Ca 7B.flac] (5:23.53) : 100% OK
Splitting [Son Ca 7B.flac] (44:28.52) --> [04 - Noi Vong Tay Lon - Son Ca 7B.flac] (3:07.25) : 100% OK
Splitting [Son Ca 7B.flac] (44:28.52) --> [05 - Diem Xua - Son Ca 7B.flac] (3:30.71) : 100% OK
Splitting [Son Ca 7B.flac] (44:28.52) --> [06 - Uot Mi - Son Ca 7B.flac] (6:13.48) : 100% OK
Splitting [Son Ca 7B.flac] (44:28.52) --> [07 - Goi Ten Bon Mua - Son Ca 7B.flac] (4:23.38) : 100% OK
Splitting [Son Ca 7B.flac] (44:28.52) --> [08 - Ha Trang - Son Ca 7B.flac] (5:15.07) : 100% OK
Splitting [Son Ca 7B.flac] (44:28.52) --> [09 - Nghe Nhung Tan Phai - Son Ca 7B.flac] (6:41.59) : 100% OK

0
By: MrTux
2012-05-30 13:34:39

1 Alternatives + Submit Alt

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: