Tuesday, January 28, 2014

grep command in Linux

grep (Options) "Search String” path/folder
Options:
-i Case insensitive search
-r Recursively search the sub directories
-n Prints the line number

Also we can use:
find . |xargs grep -rn "search string" *

No comments: