-1

This question already has an answer here:

I have file for example 'a'

aaa
aaa
bbb
ccc
ccc
bbb
ddd

After executing

uniq a c

i get file 'c'

aaa
bbb
ccc
bbb
ddd

How to delete duplicate bbb lines?

marked as duplicate by jasonwryan, don_crissti, mdpc, slm Apr 15 '15 at 2:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

An awk solution:

awk '!a[$0]++'

Not the answer you're looking for? Browse other questions tagged or ask your own question.