Hey guys,
I am converting a shell script into a ps script and need to parse a variable 
that holds the output of an executed job.

at the cli (using unix tools) I do this:

grep -B 3 "some_string" |grep "another_string" |cut -f 5 -d " "

So basically, the output has many repetitions that have various fields 
different, when I find the one I want, I include 3 lines up and filter that 3rd 
up line to show what I want.

Is this possible using built in ps syntax?

Thanks,
jlc

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to