I’m looking at the following code:

if [ -z $2 ]; then
        echo "usage: ...

(The 3 dots are irrelevant usage details.)
Maybe I’m googling it wrong, but I couldn’t find an explanation for the -z option.

4 Answers
4

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *