#!/bin/bash TOC=/tmp/$(basename $0)-$$.toc echo "CD_DA" >$TOC echo >> $TOC find $@ -type f | while read i; do echo TRACK AUDIO echo FILE \"$i\" 0 echo done >>$TOC cdrdao write --device 0,0,0 --driver generic-mmc --eject --speed 16 $TOC \ && rm $TOC