Locate with exclude?

Steve Searle steve at stevesearle.com
Sun Feb 18 13:01:40 UTC 2007


Around 11:08am on Sunday, February 18, 2007 (UK time), Anne Wilson scrawled:

> I wouldn't have guessed that.  I've not come across 'grep -v' before, but it's 
> one worth remembering, thanks.

Off topic, but a neat trick when grepping your processes to find
information about one is to use "ps auxw | grep processName | grep -v
grep"

This only lists the process(es) you want, and not the grep command
itself which would otherwise would also be picked up.  Its doesn't
reallu matter, but it is a little more elegant.

Steve

-- 

A:  Because it messes up the order in which people normally read text.
Q:  Why is top-posting a bad thing?

 12:58:50 up 3 days, 15:22,  1 user,  load average: 0.37, 0.20, 0.31
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20070218/2845ebd2/attachment-0002.bin 


More information about the users mailing list