How can I ignore lines with partial similarity and retain only one.
Hi,
I need only one of the lines having the same ending. It does'nt matter which lines to discard as long long as one with the same ending is retained. Of course I have to retain any unique lines too. Thanks again.
myfile:
aaaa bb 12345
ccc aaa 1234
abc de zzzzz
b cc dd
abab ba ba 12345
xx xx 12345
fg hi zzzzz
a 12345
result:
aaaa bb 12345
ccc aaa 1234
b cc dd
abc de zzzzz
|