Thanks evilmrhenry - thats the command I was looking for. So, your script would look like this:
# cdinfo - output the name of the volume in my cd drive, display all the files and the date it was
# Usage: type "cdinfo" while in the directory of the mounted CD
echo "Volume name: "
echo "Files: "
Put that into a text file, and put the text file in /usr/bin
Then, do this (as root):
chmod 755 /usr/bin/cdinfo
Then, mount a CD, cd to the direcory, and issue this command: