I was wondering if I could solicit some scripting help.
I want to be able to
ps | grep <command>
and from the results send a kill command to kill all of the results
essentially
if I were to run
ps agh | grep shell | grep -v "grep shell"
a fictitious result would appear listing a few different headers for my
matching grep, from the list that would return I would like to kill those
processes....I just don't know how to load the results up as a variable or
something....
Thanks in advance
Marc
Received on Wed Mar 27 2002 - 19:11:30 NZST