1.

Which option is used for displaying the line numbers containing the pattern along with lines?(a) -v(b) -i(c) -e(d) -nThis question was posed to me in final exam.I'd like to ask this question from grep command topic in section Filters using Regular Expressions of Unix

Answer»

Correct option is (d) -n

The EXPLANATION is: The -n (number) option displays the line NUMBERS CONTAINING the pattern, along with the lines. For example,



Discussion

No Comment Found

Related InterviewSolutions