Difference between revisions of "Quick Notes"

From Secure Computing Wiki
Jump to: navigation, search
(New page: This page is to list all of those quick, often one-line, commands or hints that help during the course of system administration.)
 
Line 1: Line 1:
 
This page is to list all of those quick, often one-line, commands or hints that help during the course of system administration.
 
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 ===
 +
*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 14:40, 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

  • 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