Bill, you caught me red-handed.  I was hoping you'd do the heavy lifting to
offer up an awk equivalent template for findstr.

Andrew 8)

p.s. Goran, grep is your friend.  Use fgrep as a straight substitute for
find, but fgrep is a magnitude faster.  Use egrep to do nifty things like
Bill's "or" example, or regular expressions.  There's definitely a learning
curve with regexp, particularly in learning special characters and quoting,
but the effort is worth it.

-----Original Message-----
From: Bill Landry [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 22, 2004 11:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [Declude.JunkMail] OT: Find Command


----- Original Message ----- 
From: "Goran Jovanovic" <[EMAIL PROTECTED]>

> Find /V "PhraseA" orig.txt >temp1.txt
> Find /V "PhraseB" temp1.txt >temp2.txt
> Find /V "PhraseC" temp2.txt >final.txt
> 
> Now if this is all I had to do OK fine but over time I am going to
> accumulate more things to remove. So is there any way to pass the find
> command a list of things to remove and do it all in one shot?

Why not use grep:

egrep -v "PhraseA|PhraseB|PhraseC" > final.txt

Bill
---
[This E-mail was scanned for viruses by Declude Virus
(http://www.declude.com)]

---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.
---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]

---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.

Reply via email to