sort & uniq
Hi there,
I have a file as below
K1|K2|dataA1|K3|dataA2|K4|dataA3
K1|K2|dataB1|K3|dataB2|K4|dataB3
what I need to do is sort on the keys K1,K2,K3,K4 and remove any duplicates on them (only one should remain, could be any thing). How can I do that using sort and uniq.
|