Which one of the following option is used for OR operation in test command?

Which one of the following option is used for OR operation in test command?
A. -o
B. -a
C. -e
D. -an
 
Answer: a
Explanation: test also permits the checking of more than one condition in the same line using -o (OR) operator. For example,
Code:
If [ -n “$fname -o  -n “$lname” ] ; then
. . .
 

Tìm kiếm

Back
Top