Re: Gack, this shouldn't happen under a stable OS I think

John Henders (
24 Sep 1996 16:59:45 -0700

In <> Olaf Titz <> writes:

>If you really need grep on a ps listing, e.g. to find processes of a
>certain program, the standard way to do this is grepping out the grep:
>ps -aux | grep "httpd" | grep -v grep

A more elegant way is to use something like

ps -aux | grep [h]ttpd

This saves starting an extra process.

      Artificial Intelligence stands no chance against Natural Stupidity.
                GAT d- -p+(--) c++++ l++ u++ t- m--- W--- !v
                     b+++ e* s-/+ n-(?) h++ f+g+ w+++ y*