1.

For taking patterns from a file, -f option is specified with grep command.(a) True(b) FalseI got this question in final exam.This question is from grep command topic in division Filters using Regular Expressions of Unix

Answer»

Correct answer is (a) True

Easy explanation: If we want to search a single PATTERN or more than one pattern, then we can place them into a FILE with one pattern per line and after that, we can take the pattern for the GREP command from the same file USING -f option. For EXAMPLE,



Discussion

No Comment Found

Related InterviewSolutions