Difference between revisions of "Quick Notes"

From Secure Computing Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
==Command Line Foo==
 
==Command Line Foo==
=== GREP ===
+
[[grep]]
*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 there's no delay in post:
+
<pre>grep -e "regex" --line-buffered</pre>
+

Revision as of 15:41, 3 July 2007

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

grep