Contents |
Resources and links about shell scripting. This includes bash scripting as well as dos cmd scripting.
-z The -z operator means 'is this an empty string?'. Notice the double quotes around the $1: they are mandatory here.
Example:
if [ -z "$1" ] then echo $0: usage: $0 filename exit 3 fi