Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computing > Alt Msdos Batch Nt > line processing...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 3302 of 3395
Post > Topic >>

line processing and for()

by Joachim Hofmann <speicher@[EMAIL PROTECTED] > Jun 18, 2008 at 10:32 PM

Hello,

I have a file F1 with lines f1..fn
and another file F2 with lines of regular expressions e1..em.

I want to delete all lines in F1 which match any of the expression lines 
in F2.

(Maybe deleting is too complicated, so I guess I could write the lines 
that do *not* match INTO another file and rename/delete the files last.)

I know about for..tokens to process text files.

Problem:
Batch programming does not sup****t functions which could return a 
boolean value for "is in file F2".

What can I do to implement this? Set a global variable? Or is there a 
more clever approach?

Thank You

Joachim
 




 5 Posts in Topic:
line processing and for()
Joachim Hofmann <speic  2008-06-18 22:32:33 
Re: line processing and for()
foxidrive <gotcha@[EMA  2008-06-19 07:09:39 
Re: line processing and for()
Ted Davis <tdavis@[EMA  2008-06-18 21:12:22 
Re: line processing and for()
"billious" <  2008-06-19 10:42:52 
Re: line processing and for()
Joachim Hofmann <speic  2008-06-19 11:32:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Aug 30 5:22:57 CDT 2008.