file comparison

Gabriel Genellina gagsl-py2 at
Fri Jul 31 13:32:13 EDT 2009

En Fri, 31 Jul 2009 06:25:17 -0300, learner learner <pyvault2.6 at>  

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

If that's not what you want, you have to provide much more details.

Gabriel Genellina

More information about the Python-list mailing list