Here is the documentation of some of the useful tasks that I like to do with grep
grep man page is here
the question is what are a useful subset of all the commands,
I like to use -Rni (-R: recursive, -i: ignore case, -n: line number),
grep –Rni “foo” .
will recursively search the current directory,
sometimes when I try to ignore the binary files,
-I (is also pretty helpful)
grep –RniI “foo” .