

(0) Choose a character or a short string that does not occur in the input file. (b) The result will be ordered by IP address or by the random text depending on whether step (5) is used. (a) The "random text" that sorts first for an IP address will be the one that is kept, not the first in the original file. (4) Use a regular expression to put the text back in the right order.

(3) Use a regular expression to find and remove duplicate. (2) Use TextFx to sort the file removing duplicates. (1) Use a regular expression to change all lines to put the IP address and fixed text at the front from Random Text Here:188.0.0.0 to :188.0.0.0!!!Random Text Here. In Notepad++ I would try the following multi-step process.
