in reply to Read the two files

I'm surprised that you get Out Of Memory with a file size of only 230K. Aside from this, I would start with the second file, build a hash of its entries (such as '2000/01/03/xyz'), then process the first file line by line (not slurping it into memory at once), and for each element in file 1, see whether or not it appears in the hash.

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^2: Read the two files
by Anonymous Monk on Jul 22, 2009 at 11:45 UTC
    I am getting an error because, I have stored in an array. It takes more than 5 hours to get the lines which is not in first file

      Well, that's why I have suggested not storing in an array.

      -- 
      Ronald Fischer <ynnor@mm.st>