Sample Header Ad - 728x90

Shell scripting: -z and -n options with if

201 votes
3 answers
511449 views
I have a shell script where we have following lines if [ -z "$xyz" ] and if [ -n "$abc" ], but I am not sure what their purpose is. Can anyone please explain?
Asked by user3173953 (2119 rep)
Jan 16, 2014, 01:55 PM
Last activity: Jan 20, 2025, 11:48 AM