cd-discid is a backend utility to get CDDB discid information from a CD-ROM disc. It was originally designed for cdgrab (now abcde), but can be used for any purpose requiring CDDB data.