Whenever you use a simple grep command to find a single word or phrase in a file, you run the risk of getting a lot of extra “stuff” you didn’t want to see. Grep for “not” and you get “nothing”, ...
The grep command is regarded as one of the most essential building blocks of command line automation. It is a search tool that can be used to perform basic text filtering and processing tasks on files ...
A key point to these tools (from a practical point ) is that they are very memory efficient and allow work on just a "line".