Re: Delete lines which contain string in a file

2009-02-19 Thread Chris
On Feb 19, 12:24 am, Steve Holden wrote: > Rudi Goldman wrote: > > Hi, > > Go easy on me as I am a new to Python and am trying to solve a practical > > problem that is driving me bananas. > > Basically I have 2 text files, a source and a target. I want to be able > > to delete all of the lines in

Re: Delete lines which contain string in a file

2009-02-18 Thread Steve Holden
Rudi Goldman wrote: > Hi, > Go easy on me as I am a new to Python and am trying to solve a practical > problem that is driving me bananas. > Basically I have 2 text files, a source and a target. I want to be able > to delete all of the lines in the target file which contain text from > any line in

Delete lines which contain string in a file

2009-02-18 Thread Rudi Goldman
Hi, Go easy on me as I am a new to Python and am trying to solve a practical problem that is driving me bananas. Basically I have 2 text files, a source and a target. I want to be able to delete all of the lines in the target file which contain text from any line in the source file. i.e. Source: