From: Robert Klemme Date: 2012-10-24T17:25:34+09:00 Subject: Re: Looking for suggestions processing and comparing 2 very large files On Wed, Oct 24, 2012 at 9:50 AM, Robert Klemme wrote: > On Mon, Oct 22, 2012 at 10:05 PM, Marc Weber wrote: >> If they are sorted you can split into pieces, eg create an >> a,b,c file and compare a(old) with a(new) and b(old) with b(new) only. > > One could as well read records from both files at the same time and > output diffs while doing that. If the data is line based, there are > tools already for comparing two sorted files: > > $ comm --help PS: You can use this scheme if you want to implement this yourself https://gist.github.com/3944819 -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/