"be consistent" | |
PerlMonks |
Re: Compare 3 files and print matches in Perlby vinoth.ree (Monsignor) |
on Oct 26, 2015 at 03:25 UTC ( [id://1145908]=note: print w/replies, xml ) | Need Help?? |
Hi,
If you files are sorted one, you can use linux command comm to find the common lines from all the three files, comm -12 fileA fileB | comm -12 - fileC-1 : suppress lines unique to FILE1 -2 : suppress lines unique to FILE2 -3 : suppress lines that appear in both files All is well. I learn by answering your questions...
In Section
Seekers of Perl Wisdom
|
|