Especially big file manipulation may require a sorting option
'delete all lines with double occurece of the same sorting argument'
as an extension of
'delte double lines'.
The algorithm will keep the first entry maybe as a result of a previous sorting. This list is only thought to be an example. There are lots of more redundancies that might be valuable and should remain in the file.
I suspect all this can be achieved via regualr expression. I'm sure if you post your requirement in that forum, one of the regex gurus will give you the answer.
TextPad's regular expression recogniser doesn't allow back-references (such as \1) that refer back over a newline. So, within a TextPad regular expression, you can't refer back to text on a previous line that matched a subexpression of the same regular expression.