[Tipz] byebye grep -v grep

David N. Blank-Edelman dnb at ccs.neu.edu
Fri Jan 31 09:53:48 EST 2003


Howdy-
 Got this one from the O'Reilly Mason book.

We're all pretty used to using a variation of this idiom:

    ps -ef|grep something|grep -v grep

instead, try:

    ps -ef|grep '[s]omething'

for example:

    ps -ef|grep '[d]nb'

Cool, no?

    -- dNb




More information about the Tipz mailing list