> I have 554 words in the following file one word per line. > Some words are repeated up to 3 times. > > words.list > > If I try "cat words.list | uniq -u" > It dumps all repeated words, I need one copy of all words. uniq removes duplicates only if they are adjacent: "Note: 'uniq' does not detect repeated lines unless they are adjacent. You may want to sort the input first, or use 'sort -u' without 'uniq'. Also, comparisons honor the rules specified by 'LC_COLLATE'" so the file must be sorted first. $ sort words.list|uniq Frédéric -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org