Bill gets all the credit. The toolset he has suggested to the list (and
what I use) is at:
http://unxutils.sourceforge.net/
Per his suggestions, I renamed the sort command there to usort.exe to
preserve the existing W32 sort.exe command, and I keep the folder I put
those tools in in my Path.
If you want to search the archives at:
http://www.mail-archive.com/[EMAIL PROTECTED]/
You'll find some nifty posts by him on sample usage of grep and gawk.
Andrew 8)
-----Original Message-----
From: Goran Jovanovic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 4:20 AM
To: [EMAIL PROTECTED]
Subject: RE: [Declude.JunkMail] OT: Find Command
Bill and Andrew,
I did not think to use egrep, fgrep since I did not know about them.
Seems to me I remember grep as a unix tool from way back in the hazy
days of yesteryear. I assume it has been ported to the Windows platform.
Want to offer up a clue to where I will find this new "friend" or do I
have to go searching?
I will post my grep command after I get it to work (after I get it to
work).
Thanx
Goran Jovanovic
The LAN Shoppe
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:Declude.JunkMail-
> [EMAIL PROTECTED] On Behalf Of Colbeck, Andrew
> Sent: Wednesday, June 23, 2004 2:56 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [Declude.JunkMail] OT: Find Command
>
> 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.
> ---
> [This E-mail scanned for viruses by Declude Virus]
>
---
[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.