[Tutor] looking for ways to get diff between two txt files
Kamal
kpsingh at gmail.com
Thu May 15 07:58:14 CEST 2008
Hi,
I would really appreciate if someone help to find a way to calculate
delta (diff) between two similar text files. I have looked at difflib
and found related script at this site
http://www.java2s.com/Code/Python/Utility/Printfilediffsincontextunifiedorndiffformats.htm
Is there a simple way to just get delta between two files? e.g. I have
below two files and the delta between these two files is in
diff_output.txt
file1.txt
hello world
file2.txt
hello world
hello python
diff_output.txt
hello python
--
Thanks,
Kamal
More information about the Tutor
mailing list