On Mon, Sep 01, 2008 at 08:40:42AM +0200, Diez B. Roggisch wrote:
> Johny schrieb:
> >To get a number of  the http processes running on my Linux( Debia box)
> >I use
> >ps -ef | grep "[h]ttpd" | wc -l
[...]
> The shell does the exact same thing. And by the way: i think you miss a
> 
> grep -v grep

Indeed not.  The brackets around the 'h' (which make it a character
class, or range if you prefer) prevent the regex from matching itself.

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D

Attachment: pgpsslNfAlrcv.pgp
Description: PGP signature

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to