Syntactic Confectionery Delight | |
PerlMonks |
Re: Comparison Of Filesby weingart (Acolyte) |
on Dec 05, 2000 at 23:31 UTC ( [id://45063]=note: print w/replies, xml ) | Need Help?? |
If they are already sorted,
diff -u file1 file2 | sed -e '/^^+/d' -e 's/^+//' will do the job handily... Of course, using an oldie tool will do the job even easier, but only if the files are sorted first: comm -2 file1 file2 --Toby.
In Section
Seekers of Perl Wisdom
|
|