If you attach a small excerpt of the text input(s) (save the speardsheet in CSV, if that is all you have), covering all "cases", and the expected output, I may better understand what you want to achieve and write you a command line. 'uniq' has an option --unique (-u) to only display unique lines. But it looks like you want 'comm', which compares two (sorted) files and show the lines appearing in both.

Reply via email to