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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Read the two files
by Anonymous Monk on Jul 22, 2009 at 11:45 UTC | |
by rovf (Priest) on Jul 22, 2009 at 11:46 UTC |