InterviewSolution
Saved Bookmarks
| 1. |
Which one of the following is the correct syntax for grep command?(a) grep options filename(s)(b) grep options pattern(c) grep pattern filename(d) grep options pattern filename(s)I had been asked this question in an international level competition.The doubt is from grep command topic in division Filters using Regular Expressions of Unix |
|
Answer» CORRECT option is (d) grep OPTIONS pattern filename(s) Explanation: grep COMMAND is USED to search a file for a pattern and display both matching and non-matching lines. The syntax for using grep command is: |
|