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
file B
:
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
Can diff
or comm
solve my problem?
If yes then what would be the exact command?