grep'ping the ps output....

Eric Schuele e.schuele at computer.org
Mon Dec 12 09:04:30 PST 2005


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


More information about the freebsd-questions mailing list