Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2005 11:04:07 -0600
From:      Eric Schuele <e.schuele@computer.org>
To:        Kirk Strauser <kirk@daycos.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: grep'ping the ps output....
Message-ID:  <439DAD87.7000307@computer.org>
In-Reply-To: <200512121033.44950.kirk@daycos.com>
References:  <439D9FA3.7030603@computer.org> <439DA275.70404@dial.pipex.com> <200512121033.44950.kirk@daycos.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Kirk Strauser wrote:
> On Monday 12 December 2005 10:16, Alex Zbyslaw wrote:
> 
> 
>>ps | egrep firefox | egrep -v egrep
> 
> 
> Ouch!  Replace that with:
> 
>     ps | grep "[f]irefox"

Ah, yes.  Very nice.  Thanks.

> 
> which will never match the grep commandline itself.


-- 
Regards,
Eric



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439DAD87.7000307>