I have 2 files with say 3 columns and a few rows.

```
1    2    10
2    3    20
3    4    30
4    5    40
5    1    50
6    1    60

```

and

```
1    8    10
2    3    100
3    4    45
4    5    78
5    2    99
6    80   60

```

Now i want to create a third file having all the values of first two files and also if first and second column of both the files are same then in third file the values corresponding to them should like say,value in third column of first file must be in third column of newly created file and value in third column of second file must be in fourth column of newly created file.
According to above example answer should be

```
1  2  10  0
2  3  20  100
3  4  30  45
4  5  40  78
1  8  10   0
5  1  50   0
6  1  60   0
5  2  99   0
6  80 60   0

```