File comparison with exceptions

2010-10-12 Thread Pratik Khemka
differences while file comparison. Is there any easy way to do this..? What I want to actually compare and be alerted for are any differences here : File 1 File 2 < nor_ic -= pi.cConfig.Isthere ? 9 : 7; < nor_ic -= pi.cConfig.Isthere ?

Re: file comparison

2009-08-03 Thread Dave Angel
learner learner wrote: Firstly thanks for showing the interest. I shall elobarate more on the problem: file-1.txt -- hai how r u file-2.txt --- r hai u The two files have some lines in common. For eg: File-1.txt-first line-"hai" does not match with File-2.txt-first li

Re: file comparison

2009-07-31 Thread Gabriel Genellina
En Fri, 31 Jul 2009 06:25:17 -0300, learner learner escribió: I want to compare two text files line by line and eliminate the matching/repeated line and store the unmatched/leftout lines into a third file or overwrite into one of them. Look at the difflib module: http://docs.python.org/libr

Re: file comparison

2009-07-31 Thread Dave Angel
Hendrik van Rooyen wrote: On Friday 31 July 2009 11:25:17 learner learner wrote: Hi all, I want to compare two text files line by line and eliminate the matching/repeated line and store the unmatched/leftout lines into a third file or overwrite into one of them. This is not as simple

Re: file comparison

2009-07-31 Thread Hendrik van Rooyen
On Friday 31 July 2009 11:25:17 learner learner wrote: > Hi all, > > I want to compare two text files line by line and eliminate the > matching/repeated line and store the unmatched/leftout lines into a third > file or overwrite into one of them. This is not as simple as it seems. You will probab

Re: file comparison

2009-07-31 Thread Chris Rebert
On Fri, Jul 31, 2009 at 2:25 AM, learner learner wrote: > Hi all, > > I want to compare two text files line by line and eliminate the > matching/repeated line and store the unmatched/leftout lines into a third > file or overwrite into one of them. See the `difflib` module: http://docs.python.org/l

Re: file comparison

2009-07-31 Thread Gerhard Häring
learner learner wrote: > Hi all, > > I want to compare two text files line by line and eliminate the > matching/repeated line and store the unmatched/leftout lines into a > third file or overwrite into one of them. gl & hf! -- http://mail.python.org/mailman/listinfo/python-list

Re: file comparison

2009-07-31 Thread Xavier Ho
On Fri, Jul 31, 2009 at 7:25 PM, learner learner wrote: > Hi all, > > I want to compare two text files line by line and eliminate the > matching/repeated line and store the unmatched/leftout lines into a third > file or overwrite into one of them. > Sounds like homework to me. Why not look into:

file comparison

2009-07-31 Thread learner learner
Hi all, I want to compare two text files line by line and eliminate the matching/repeated line and store the unmatched/leftout lines into a third file or overwrite into one of them. regards -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a Duo - file comparison and a file parser

2008-09-09 Thread Robert Kern
[EMAIL PROTECTED] wrote: HI, I'm thinking of writing a file comparison utility in python. This utility will work as: 1. Compare 2 files for the differences. Both files contain some numerical results. 2. Generate a common file containing the differences (the same way as 'diff&#x

Looking for a Duo - file comparison and a file parser

2008-09-09 Thread dudeja . rajat
HI, I'm thinking of writing a file comparison utility in python. This utility will work as: 1. Compare 2 files for the differences. Both files contain some numerical results. 2. Generate a common file containing the differences (the same way as 'diff' generate an output) 3. Now, I

Re: Looking for File comparison utility that produces actual differences

2008-09-03 Thread Jeff McNeil
On Sep 3, 2:40 pm, [EMAIL PROTECTED] wrote: > Hi, > > I looking for a file comparison utility in Python that works like > 'diff' command in Unix and 'comp' in Windows. > The present 'cmd' in filecmp module only presents output in the form > of 1 or

Re: Looking for File comparison utility that produces actual differences

2008-09-03 Thread Wojtek Walczak
On Wed, 3 Sep 2008 19:40:40 +0100, [EMAIL PROTECTED] wrote: > I looking for a file comparison utility in Python that works like > 'diff' command in Unix and 'comp' in Windows. > The present 'cmd' in filecmp module only presents output in the form > of 1

Looking for File comparison utility that produces actual differences

2008-09-03 Thread dudeja . rajat
Hi, I looking for a file comparison utility in Python that works like 'diff' command in Unix and 'comp' in Windows. The present 'cmd' in filecmp module only presents output in the form of 1 or 0 i.e whether the 2 files differ or not? So, I'm lookin