Tuesday, March 20, 2012

Linux search files by content (grep)

Linux, command line search files by content.
Search file contents, display line, highlight text, show line number:

$ grep  -iRn "text fragment" path1/*

No comments: