![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: compare most recent file with second most recent file and output differenceby Kenosis (Priest) |
on Nov 02, 2012 at 19:46 UTC ( #1002036=note: print w/replies, xml ) | Need Help?? |
Here's one option:
What it does:
This uses a hash to tally identical lines, then shows only those keys (lines) whose value is 1, i.e., lines which only appear once in either file. Hope this helps! Update: Used three hashes: one for each file, and one merging the two hashes, in case the same line is repeated twice within a file--and those lines are only in that one file.
In Section
Seekers of Perl Wisdom
|
|