I have two text files that I need to compare the contents of because one of them is missing 2 items that the other has, but I'm not sure which since they are long. I've tried diff
and vimdiff
with no luck. My files are both formatted like this in a jumbled order:
item1 item2 item3
item8 item10 item6
item32 item12 item7
How can I pick out which items one of text files has but the other lacks while ignoring the format and order?
I believe you can use comm command.. but you should have both files in sorted order to compare: