Find Distinct Lines
Menu: Search > Find Distinct Lines
Default Shortcut Key: none
Macro function: FindDistinctLines()
The Find Distinct Lines command can be used to isolate all distinct lines within the current file. The distinct lines are copied, with line numbers, into an untitled file. No change is made to the current file during the operation.
If a range of lines is selected, Find Distinct Lines will operate only on that portion of the file.
The results are presented in alphabetic order. The Sort Lines command can be used to sort by line numbers, if desired.
The effect of this command is similar to the Find Unique Lines command, with an important difference: Find Unique Lines omits from its report any lines which are duplicated. Find Distinct Lines includes duplicated lines, but places just a single instance of such lines in its report. An example will clarify: