I have two files out of which I want to create a third which contains all the information.
file 1:
a 111
b 222
c 333
d 666
e 777
file 2:
111 x1
222 x2
333 x3
444 x4
555 x5
666 x6
777 x7
888 x8
I would like to combine them as following:
111 x1 a
222 x2 b
333 x3 c
444 x4 0
555 x5 0
666 x6 d
777 x7 e
888 x8 0
Note:
The second column of file 1 is a subset of the first column of file 2