Duplicate words | uniq\sort?

Frank Murphy frankly3d at gmail.com
Sun Feb 16 16:06:46 UTC 2014


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 words.list > uniq.list
Words are still duplicated.

sort words.list | uniq
leaves about 20 words total
which I feel is wrong as 
cat words.list | uniq -c
shows about 100 non-dupe words

Haven't much success with sort either.


___
Regards
Frank 
frankly3d.com


More information about the users mailing list