[plug] printing a CD track list

Matt Kemner zombie at penguincare.com.au
Fri Nov 22 15:32:52 WST 2002


On Fri, 22 Nov 2002, quoth Mike Holland:

> Could anyone tell me an easy way to print a CD track list from CDDB
> please?

Using the "cd-discid" and "cddb" debian packages I wrote the script:

#!/bin/bash
id=`cd-discid /dev/scd0`
tag=`cddbcmd cddb query $id`
cat=`echo $tag|cut -d" " -f 1-2`
cddbcmd cddb read $cat

I wrote this script a while ago, when I wrote an SMP aware mp3 ripper in
Perl, and I don't have an audio CD handy, so I can't tell you whether all
these steps are required, but I know it will give you a track list.

 - Matt



More information about the plug mailing list