How to remove duplicate words from a plain text file using linux command
Posted
by cupakob
on Stack Overflow
See other posts from Stack Overflow
or by cupakob
Published on 2009-06-04T18:24:38Z
Indexed on
2010/04/02
2:33 UTC
Read the original article
Hit count: 384
I have a plain text file with words, which are separated by comma, for example:
word1, word2, word3, word2, word4, word5, word 3, word6, word7, word3
i want to delete the duplicates and to become:
word1, word2, word3, word4, word5, word6, word7
Any Ideas? I think, egrep can help me, but i'm not sure, how to use it exactly....
© Stack Overflow or respective owner