On Wed, Oct 11, 2000 at 07:17:35PM -0500 or thereabouts, Aaron Schrab wrote:
> At 09:23 +0930 12 Oct 2000, Brian Salter-Duke <[EMAIL PROTECTED]> wrote:
> 
> Or you could just make a minor modification to the grep pattern:
> 
>   ps -U $LOGNAME | grep 'r[e]almutt' > /dev/null
> 
> That way grep won't be able to match itself.
> 

Explain how that works would you?

Thanks,

Or have I figured it out myself?

Something like this...

[<character-list>] means "find a single character from this list" so, in the
above example, grep will do

grep realmutt

while its process will look like

grep r[e]almutt

Now, that ROCKS!

-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064217 Fax +353 1 8064275
------------------------------------

Reply via email to