I'll go with "yes" too. ;)

-ilike is the other operator I'd look at


Thanks,
Brian Desmond
[email protected]<mailto:[email protected]>

c - 312.731.3132

From: Michael B. Smith [mailto:[email protected]]
Sent: Friday, March 12, 2010 3:42 PM
To: NT System Admin Issues
Subject: RE: Powershell Question

I'm going to say "yes", but I'm still not exactly sure what you are going for 
there. Look at "-match", "findstr", and "select".

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com

From: Joseph L. Casale [mailto:[email protected]]
Sent: Friday, March 12, 2010 4:18 PM
To: NT System Admin Issues
Subject: Powershell Question

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