Grep is one of the most usefull tool in linux or unix. With grep you can extract lines that correspond to certain criteria.
The most basic way to use grep is the following :
Let suppose a file name “name” that contain the name of people.
Here is what it contain:
If you do :
cat name | grep Moore
you will get :
Or you can do :
Grep Moore name
And still get the same result!
Please feel free to leave comments, suggestion or to share this post!