i have this data
aaa
aaa
bbb
ddd
bbb
ccc
how to keep only unique lines as this result
ddd
ccc
Thanks much for any help
i have this data
aaa
aaa
bbb
ddd
bbb
ccc
how to keep only unique lines as this result
ddd
ccc
Thanks much for any help
Try doing a find and replace all in regex mode with:
^(.*?\R)\1+
and replace with nothing.
Apologies, just observed this will not work is list is not sorted.
Two step
1st : Edit - Line Operations - Sort Lines Lexicographically Ascending
2nd : replace "(?-s)^(.+\R)\1+" with nothing
source :https://notepad-plus-plus.org/community/topic/12490/i-want-to-keep-only-unique-lines/2
Anyone can explain the answer ? .Thanks