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
awk 'NR==FNR{a[$1]++;next} a[$1] ' file1 file2