|
How to Uniquify w/o sorting??
Hello everyone.
I need to uniquify a file which contains only strings, but not in a sorted order. What I basically mean to achieve is that without touching the order of the contents, I should be able to do away with repetitions! Although i can easily write a PERL script for the same, I want to achieve the same through the linux prompt.
Eg:
A file containing the following:
Zeta
Apple
Bear
Gum
Apple
Gum
Tiger
Beargum
Should become:
Zeta
Apple
Bear
Gum
Tiger
Beargum
Is it possible through the command prompt?
|