[425 views]
grep stands for Global regular expression print. It is the most powerful command-line search util for linux and other unix OS. You can use grep to search for different patterns in files in all the system.
Basic syntax for grep-
Basic Usage of Grep (example):
Grep will return every line that contains the exact text jackson in the file pom.xml
Some commonly used flags in grep:
-i :- It makes the grep command case insensitive
-v :- invert the match functionality of grep command
-n :- show line number inside file in which the match is found