1.

Which one of the following option is used for AND operation in test command?(a) -o(b) -a(c) -e(d) -anI got this question by my college director while I was bunking the class.This is a very interesting question from Using test and [ ] to Evaluate Expressions in division Essential Shell Programming of Unix

Answer»

The correct ANSWER is (b) -a

The explanation is: test also permits the CHECKING of more than ONE condition in the same LINE using -a (AND) operator. For EXAMPLE,



Discussion

No Comment Found

Related InterviewSolutions