1.

Which one of the following command is used for searching for a pattern in one or more file(s)?(a) cd(b) cp(c) paste(d) grepI have been asked this question in quiz.The question is from grep command topic in section Filters using Regular Expressions of Unix

Answer» CORRECT OPTION is (d) grep

The best I can explain: UNIX has a special FAMILY of commands for handling search REQUIREMENTS, and the principal member of this family is the grep command. This command scans its input for a pattern and displays the lines containing the pattern, the line numbers or filenames containing the pattern.


Discussion

No Comment Found

Related InterviewSolutions