1.

Which option is used with grep command for ignoring the case in pattern searching?(a) -a(b) -v(c) -i(d) -eI got this question in a national level competition.My question comes from grep command topic in portion Filters using Regular Expressions of Unix

Answer»

The correct answer is (c) -i

The best EXPLANATION: When we want to SEARCH a pattern using grep COMMAND and we want to ignore the case or we are not SURE of the case, we’ve to use the -i option. This option ignores the case the pattern matching.



Discussion

No Comment Found

Related InterviewSolutions