OT Regular Expression [grep]
| From: | Thomas Deliduka | Date: | Tue, 03 Apr 2001 19:59:05 +0000 |
| Subject: | OT Regular Expression [grep] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46882@lists.php.net to get a copy of this message | ||
I know this is off-topic but what I'm using it for will be in a PHP script!
All you who are grep-masters I have a question.
I would like to find all processes by a given user on a linux box and kill
them. I know this much:
ps -u username
Now, do I then pipe that to grep somehow and get just the PID's?
How can I do this quickly and easily?
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/