I have a sorted wordlistwords list, line by line file like so..
apple
apple
grapes
lime
orange
orange
pear
pear
peach
strawberry
strawberry:
...................
apple
apple
grapes
lime
orange
orange
pear
pear
peach
strawberry
strawberry
I only want to print out unique lines and drop duplicates.
grapes
peach:
lime
grapes
peach
lime
How do ican I do this with sedsed, awkawk or perl perl?
Thanks