in reply to Perl command line for table join functionality
sort file2 > file2.sorted sort file1 | join -26 - file2.sorted [download]