in reply to Re: Re: How to process two files of over a million lines for changes
in thread How to process two files of over a million lines for changes

I applied the usual, build an array, sort, take out the unique addresses, write them to a new file.
For me, "the usual" would be:
$ sort -u file > file.$$ && mv file.$$ file

Would even work without much ram.

Abigail

Replies are listed 'Best First'.
Re: Re: How to process two files of over a million lines for changes
by punkish (Priest) on May 23, 2004 at 13:20 UTC
    Ya, but I am still at the "learning from the Cookbook stage." ;-).

    Now, thanks to you, I went to the terminal and learned all sorts of nice things about 'sort.' No more using Perl for this problem.

    Gives meaning to the old saying, "Give a newbie some Perl knowledge, and all problems start looking like Perl problems."