#!/bin/sh -u # If the script has one argument, tell whether it is readable. # Reference: Chapter 11 # -IAN! idallen@ncf.ca if [ $# -eq 1 ] ; then if [ -r "$1" ] ; then echo "path $1 is readable" else echo "path $1 is missing or is not readable" fi else echo 1>&2 "$0: I did not find one path argument, I found $#" fi