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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: find common lines in many files
by jethro (Monsignor) on Jul 11, 2011 at 09:56 UTC | |
by BrowserUk (Patriarch) on Jul 11, 2011 at 10:13 UTC |