I have two files with tab-separated values that look like this:
file1:
A 1
B 3
C 1
D 4
file2:
E 1
B 3
C 2
A 9
I would like to find rows between files 1 and 2 where the string in column 1 is the same, then get the corresponding values. The desired output is a single file that looks like this:
B 3 3
C 1 2
A 1 9
Can this be done with a Unix one-liner?