I have a text file with lines that are a mixture like this:###  Comments# Comments86.242.200.81 banana.domain.net          # comment86.242.200.3 orange.domain.net31.28.225.81 monkey.anotherdomain.net51.18.33.4 puffin.domainz.com#31.28.220.80 monkey.anotherdomain.net   # comment86.242.201.3 orange.domain.netHow do I find the host.domain duplicates?In this case, there are two:  monkey.anotherdomain.net and orange.domain.netTaking into account that..Trailing comments after the entry need to be ignored, as they may not be on the duplicate.If the line is commented out, the duplicate should still be found.Differences in IP address should be ignored.
How to find duplicate lines in a text file, while some may be commented out or have different tokens at the beginning?
text processing;uniq