Unique lines with unique words

view full story

http://unix.stackexchange.com – Help me to print unique lines in Linux. Word examples like A B B C C D A E F G H I I J the output should be F G H I I.e., the line should be unique at first and the words in the line should also appear only once as in above example “F G” is a unique line and neither “F” or “G” never exists in any other line similarly “H I”. (HowTos)