sort file.txt | uniq -u > unique_lines.txt [download]
In reply to Re: removing non-duplicates by davidrw in thread removing non-duplicates by Anonymous Monk