in reply to Re: find common lines in many files
in thread find common lines in many files

Update: Corion points out that you aren't counting. I think your one-liner might work if you modify your regex to be:

perl -ne 'print if ($seen{$_} .= @ARGV) =~ /^9876543210$/' FILE1 FILE2

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: find common lines in many files
by jethro (Monsignor) on Jul 11, 2011 at 09:56 UTC
    No, because if lines occur more than once in a file you get strings like "9987655433321"

      Right!


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.