From Secure Computing Wiki
Revision as of 15:40, 3 July 2007 by Ecrist
This page is to list all of those quick, often one-line, commands or hints that help during the course of system administration.
Command Line Foo
- 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