Emacs. How remove duplicate lines that contain some text

Viewed 558

Windows 10 (64 bit), Emacs 25.1

Suppose I has text:

111111111 aaaaaaaa bbbbbbbbbb

222222 3333333333 44444444

111111111 aaaaaaaa bbbbbbbbbb

111111111 aaaaaaaa bbbbbbbbbb

44444444 666666666 777777777777

111111111 aaaaaaaa bbbbbbbbbb

So I want to remove duplicate lines that contain aaaaaaaa.

Result must be this:

111111111 aaaaaaaa bbbbbbbbbb

222222 3333333333 44444444

44444444 666666666 777777777777

I want to use built-in capabilities of Emacs (without write custom elisp script).

1 Answers
Related