Goran, check out the FindStr.exe command in your %windir%\system32 folder,
it does exactly what you want. Specifically, you will keep appending your
search strings as new lines in one text file, and search each line to
include/exclude from your orig.txt

If your needs are going to grow to only a few search phrases, do this:

find /V "PhraseA" orig.txt | find /V "PhraseB" | find /V "PhraseC"
>final.txt

but you will find that you will only get about 200 characters on that line
length.


Andrew 8)

-----Original Message-----
From: Goran Jovanovic [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 22, 2004 8:44 PM
To: [EMAIL PROTECTED]
Subject: [Declude.JunkMail] OT: Find Command


Question about the FIND command. Is this possible?

I have a file that I would like to remove some lines which have unique
texts. Lets say "PhraseA", "PhraseB" and "PhraseC"

I know that I could do 

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?

Thanx
 
     Goran Jovanovic
     The LAN Shoppe

---
[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