-1

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?

1

An awk solution:

awk '!a[$0]++'

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