---

How To Make Good Use Of ‘grep’ Command

Linux and UNIX systems come with a shell command known as grep. This simply looks for a specified text, or pattern, in a file or an entire directory. The most common usage is for quickly searching a file for occurrences of a pattern, which can be in plain text, or in the form of a regular expression. Here, the patterns used will be simple text rather than regular expressions.