1.

Which option is used with grep command for deleting lines?(a) -v(b) -e(c) -a(d) -iThe question was posed to me in exam.This intriguing question originated from grep command topic in chapter Filters using Regular Expressions of Unix

Answer»

The correct answer is (a) -v

Explanation: grep can play an inverse role;the -v (inverse) OPTION selects all lines except those CONTAINING the pattern. For EXAMPLE, the FOLLOWING COMMAND.



Discussion

No Comment Found

Related InterviewSolutions