Find Duplicates

From TED Notepad
Revision as of 20:28, 1 May 2010 by Jsimlo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You see work in progress here; this section already reflects future TED Notepad version 6.0.0.14.
This section may contain incomplete, premature, or mistaken information, prone to change without notice.

Find duplicates.. (Alt+Ctrl+X)

Searches the selection for duplicate lines. Works the same way as the Unique.. tool does, but allows more options and choices, affecting behavior and results of the tool:

  • All lines - Removes all duplicate lines, keeping exactly one instance of each original line. The order of resulting lines remains unchanged and from each two equal lines, the second one is removed. This is identical to the behavior of the Unique.. tool.
  • Only unique lines - Removes all lines that have duplicates, leaving only those lines that were already unique. The order of resulting lines remains unchanged.
  • Only duplicated lines - Removes all lines that do not have duplicates, leaving only those lines that do have duplicates. The resulting lines are uniqued in the process, thus each resulting line appears only once in the results. The order of resulting lines remains unchanged.


This section is incomplete and wants to be finished later.
TODO: Not specified.


Result of Only duplicated lines; see example above:
wood

a woodchuck chuck

The Count duplicates option adds to the result the actual numbers of equal lines. Each resulting line will contain a number of its duplicates, written in brackets before the line.

Result of Count duplicates; see example above:
(1) how much

(2) wood (1) would (2) a woodchuck (2) chuck (1) if (1) could

Additionally, Ignore case option may be specified to ignore case when matching duplicates. Leave empty lines option may be specified to spare empty lines from being uniqued to prevent joining of separate paragraphs.