in reply to Re: Extract common lines from 2 files
in thread Extract common lines from 2 files

There is even http://search.cpan.org/~cwest/ppt-0.14/bin/grep
  • Comment on Re^2: Extract common lines from 2 files

Replies are listed 'Best First'.
Re^3: Extract common lines from 2 files
by Hellhound4 (Novice) on May 11, 2012 at 00:02 UTC

    I had a very similar question the other day. You can find my complete code on the last post of this thread.

    http://www.perlmonks.org/?node_id=968493

    The cpan utility I used is here. (though there is a way to use grep)

    http://search.cpan.org/dist/Array-Utils/Utils.pm

    Basically you need to open each file and read them into separate arrays. Then cycle through and find the matches.