Grep search command everyone should memorise

By | December 30, 2016

It’s a neat and powerful command that all *nix users should know.

>> grep -rn “keyword” *

This does a search for the keyword.

* = all files
-r = recursive (for all child directories)
-n = show line numbers


Leave a Reply

Your email address will not be published. Required fields are marked *