value. If it doesn't exist or is null, print the error message. If no error message is given, print parameter null or not ... es of existent file. Returns with code zero if no errors, else prints an error message and returns with code 1.
Querying ... OK"
else
echo "ERRORS"
fi
If there is an error we can create another function to echo the error out to the screen:
name_error()
# name_erro... t must contain only letters"
}
The function name_error will be used to echo out all errors disregarding any invalid entries. Using the s
en
echo "Usage: `basename $0` filename" >&2
# Error message to stderr.
exit $E_NOARGS
# Returns 65 as exit status of script (error code).
fi
filename=$1
if [ ! -f "$filename... .
then
echo "File $filename not found!" >&2 # Error message to stderr.
exit $E_NOTFOUND
fi
if