K Kim Trang New member Sep 19, 2021 #1 Which one of the following option is used for checking that the string is not null? A. -a B. -o C. -z D. -n
Which one of the following option is used for checking that the string is not null? A. -a B. -o C. -z D. -n
N Nguyễn Đôn Hào New member Sep 19, 2021 #2 Answer: d Explanation: test can be used to compare strings with another set of operators. -n is used for checking if the string is not null. For example, Code: If [ -n “$fname ] ; then echo “$fname” Upvote 0 Downvote
Answer: d Explanation: test can be used to compare strings with another set of operators. -n is used for checking if the string is not null. For example, Code: If [ -n “$fname ] ; then echo “$fname”