Linux/UNIX - Using grep With Regular Expressions
Searching for Lines Containing Patterns
There will be many occasions when you are trying locate a specific set of lines in a file, such as a log file, or perhaps you are trying filter the results that have come back from a Linux or Unix command to just the ones relevant to your specific needs.
The grep command is perfect in these situations and we explore some of it’s capabilities here.