Grep

From Secure Computing Wiki
Revision as of 15:43, 3 July 2007 by Ecrist (Talk | contribs) (New page: *perform grep to highlight only certain text, but display all: <pre>grep -e ".*<regex>.*" -e '$'</pre> *perform grep on output from other commands like tail the use line buffering so ther...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • perform grep to highlight only certain text, but display all:
grep -e ".*<regex>.*" -e '$'
  • perform grep on output from other commands like tail the use line buffering so there's no delay in post:
grep -e "regex" --line-buffered