Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!topgun.dspo.gov!lanl!opus!dante!tgardenh
From: tgardenh@nmsu.edu (Tricia Gardenhire)
Newsgroups: comp.unix.questions
Subject: Summarize: killing with awk and grep
Message-ID: <304@opus.NMSU.EDU>
Date: 11 Aug 89 14:23:30 GMT
Sender: news@nmsu.edu
Distribution: usa
Lines: 13

Thanks to all who sent me their ideas.  I think I understand a little
more about how grep, and awk work now.  Any way, to summarize, the
easiest way to do this was:

kill `ps -aux | fgrep -e -sleeper | egrep -v fgrep | awk '{print $2}'`

Most other ideas were similar, but were more involved shell scripts.
For others who wish to use this, just change "-sleeper" to whatever
process you need to kill.  

Thanks again for all the help.

-Trish