home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- # usage -- standard usage message for shell scripts
-
- exec 1>&2
-
- pgm=`basename ${1:-command?}`
- args="${2-args?}" # note "-" not ":-", in case no args
- description="${3:-description?}"
-
- echo "
- $pgm -- $description
-
- Usage: $pgm $args
- "
-
- exit 1
-
- # 06-Aug-1989: placed in the public domain
- #-----------------+-----------------------+-----------------------------
- # James Frew | frew@crseo.ucsb.edu | Computer Systems Lab., UCSB
- # +1 805 961 8413 | frew@ucsbuxa (BITNET) | Santa Barbara, CA 93106, USA
-