I have two text files that each have two space separated columns .
File 1:
Mary 123
Jack 836
Joan 936File 2:
Mary 123
Jack 837
Henry 430What I'm looking for is to find names unique to both files as well as names common to both files but with a different value .
Output
- Jack: Common to both files but different value (836,837)
- Joan: Unique to File1
- Henry: Unique to File2
How do I do this using unix commands?
One thing I came across is to use comm command to find unique names and then use the diff command to find common names with different values. But is there a more efficient way to do this ?
3 Reset to default