I have two files each containing a timestamp and a count as follows
File1.txt
9 2016-06-22
3 2016-06-23
2 2016-06-24
1 2016-06-25
2 2016-06-26
2 2016-06-27
File2.txt
3 2016-06-23
2 2016-06-25
5 2016-06-27
I would like to created an output where it uses the date column (col-3) in both the files and create an joined output which is as follows.
Expected result:
9 2016-06-22
3 3 2016-06-23
2 2016-06-24
1 2 2016-06-25
2 2016-06-26
2 5 2016-06-27
Using paste command is very complex and involves manual effort to get the expected output.Can someone help me with this ?
Thank you.