Thanks for all of your suggestions. Turns out Marco's first version
was really the one I needed.
Thanks again,
t.
On Mar 26, 12:37 pm, Marco Mariani wrote:
> Marco Mariani wrote:
> >> If the lines are really sorted, all you really need is a merge,
>
> For the archives, and for huge files where
On Mar 26, 11:10 am, Marco Mariani wrote:
> Marco Mariani wrote:
> >> while True:
> >> a = filea.readline()
> >> b = fileb.readline()
> >> if not (a or b):
> >> break
>
> BTW, watch out for this break. It might not be what you want :-/
HA! Just found it :P
Hello All:
I am starting to work on a file comparison script where I have to
compare the contents of two large files. Originally I thought to just
sort on a numeric key, and use UNIX's comm to do a line by line
comparison. However, this would fail, hence my thinking that I really
should've just us