Skip to content

Instantly share code, notes, and snippets.

@makotom
Last active October 11, 2015 10:28
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 makotom/3844761 to your computer and use it in GitHub Desktop.
Save makotom/3844761 to your computer and use it in GitHub Desktop.
Rip a precise CD audio copy (as a replacement of EAC)
#!/bin/bash
DEV=/dev/sr0
OFFSET=6
cdparanoia -d $DEV -O $OFFSET 1- data.wav
cdrdao read-toc --device $DEV cdda.toc
toc2cue cdda.toc cdda-tmp.cue
sed -e s/BINARY/WAVE/ cdda-tmp.cue > cdda.cue
rm cdda.toc cdda-tmp.cue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment