Whenever we are dealing with a small amount of data, we can use the grep command very efficiently. It allows us to search one or more files for lines that contain a pattern.
For example-:
“grep pat check.txt”
This command will print all lines containing the text string “pat”, from the file check.txt
All the lines containing text strings such as “pat”, “patty”, “pattern”, “patties” will be printed at the output terminal.
Drawbacks of Grep command:-
It is unable to return the document with query words appearing the maximum number of times.
This command is in general very slow when working with a