title: How can I determine the volume name of CD/DVD in bash?
body: <p>I'm trying to figure out how to get a bash script to automatically determine the path to a CD/DVD in order to process it. Running a Mac (10.7.4) the disk shows up at:</p>
  
  <pre><code>/Volumes/[Volume_name]
  </code></pre>
  
  <p>Since the volume name changes depending on the disk, I'm having to input that part manually. The operating system obviously knows it's a CD/DVD because of the way the controls work. Is it possible for bash to use whatever the OS uses to determine there is a CD/DVD and provide the path to it?</p>