I Have two files as below,
first file:
Start State |Next State |Session Count |Transition%
LA_product_view |home |694 |28.660%
LA_product_view | searchresults |54 |2.230%
home | 1101260 | 2 | 0.050%
second file:
Start State Next State Session Count Transition%
LA_product_view |home | 618 | 27.560%
LA_product_view |searchresults | 59 | 2.630%
home | price | 25 | 0.360%
i need to compare first two coloumns of first file and first two coloumns of second file and if they both match it should print 3,4 coloums of both file.if both the files has unique they should be listed with NA from the both files. my output should be like:
LA_product_view | home | 694 |28.660% |618 |27.560%
LA_product_view | searchresults |54 | 2.230% | 59 |2.630%
home | 1101260 | 2 |0.050% |N/A | N/A
home | price | N/A | N/A | 25 | 0.360%
can someone please help me in this..!