1.

Which of the following operator is used as a shorthand for test?(a) % %(b) [ ](c) & &(d) ( )The question was asked in semester exam.My doubt is from Using test and [ ] to Evaluate Expressions topic in division Essential Shell Programming of Unix

Answer»

Right choice is (b) [ ]

For explanation: UNIX PROVIDES a shorthand for test i.e. [ ]. We can use this PAIR of rectangular brackets enclosing the EXPRESSION. THUS the following two are equal,



Discussion

No Comment Found

Related InterviewSolutions