#!/bin/sh # the the number of args > 0 and isn't then pass them to the command # else print the idiot message if [ $# -gt 0 ]; then readcd dev=/dev/cdrom f=$@ #eject /dev/scd0 else echo "Usage: ripcd filename.raw" fi