1.

Which of the following operators is used with test for comparison of numeric values?(a) -eq(b) -ne(c) -gg(d) –eq and -neThis question was addressed to me during an interview.My question comes from Using test and [ ] to Evaluate Expressions in division Essential Shell Programming of Unix

Answer»

The CORRECT choice is (d) –eq and -ne

To EXPLAIN: There are some comparison operators which are USED by test. For EXAMPLE,



Discussion

No Comment Found

Related InterviewSolutions