I\'m sure I once found a unix command which could print the common lines from two or more files, does anyone know its name? It was much simpler than diff.
diff
perl -ne 'print if ($seen{$_} .= @ARGV) =~ /10$/' file1 file2