Another table with two columns; This has got a subset of entries from File 1 but not unique because they have differing values in col 2.
File2.txt
1 a
2 d
2 f
6 r
6 e
6 a
6 g
9 q
9 y
I want to compare Column 1 in File1 with Column 1 in File2 and write a new file (file3) with all entries of file1 (col1) with the corresponding entries from file2 (col2) entered in file 3 col 2 as follows.