I want to compare two files with same number of rows and columns with records in same order.
Just want to highlight the differences in the column values if any.
file A
1,kolkata,19,ab
2,delhi,89,cd
3,bangalore,56,ef
file2:
1,kolkata,21,ab
2,mumbai,89,gh
3,bangalore,11,kl
considering column 1 as primary key, we have differences in other columns.
i want to highlight those differences
Output format may be (not sure ):
record_number , columns_with_diff
1 3
2 2,4
3 3,4
does diff or comm can solve my problem ? if yes then what would be the exact command.. m trying but not getting