How to See How Many Lines Were Removed
Key points
- Paste
- Tidy
- Check the counts
When removing duplicates, it matters to check how many lines disappeared. If more or fewer than expected were removed, it is a sign to review the settings. Remove Duplicate Lines and Sort a List shows three line counts.
Steps
- Paste the list into "Before tidying (one per line)".
- Choose how to tidy (remove duplicates, remove empty lines, remove spaces).
- In the result area, check these three numbers.
- "Original line count"
- "Line count after"
- "Lines removed"
- When satisfied with the numbers, copy with "Copy result".
"Lines removed" is "Original line count" minus "Line count after".
Reading the numbers
- Lines removed is 0: there were no duplicates or empty lines, or the options are off.
- Fewer than expected: spaces or case differences mean lines are not judged duplicates.
- More than expected: "Remove empty lines" removed many empty lines at once, or there were many identical lines.
How to check
- See whether the number removed is as expected.
- If it differs, change the options one at a time and watch how the number changes.
- Check "After tidying" by eye.
Counting empty lines and duplicates separately
To know which removed them, first remove only the empty lines and look at the number. Then remove duplicates and look at the number again.
Good for
- Keeping a record of tidying a roster or list
- Reporting how many duplicates there were
- Suspecting unexpected duplicates
Example
For a 200-line list, 3 lines were removed. Having expected about 10, adding the option to remove spaces made it 12.
Common stumbling blocks
- How lines are counted: an empty line after the final line break may be counted.
- Line count changes on pasting: check the format of the source.
Frequently asked questions
Can I see the content of the removed lines?
This tool shows only the counts. To check content, review the "before" field.
Summary
Check the result with the three line counts. If it differs from expectation, review the settings.
Use "Remove Duplicate Lines and Sort a List" (free)Tools that go well with this
- Remove and Tidy Line Breaks in Text: Tidy line breaks in text copied from PDFs and elsewhere.
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.
- Convert Full-Width, Half-Width, Hiragana and Katakana: Convert full-width/half-width and hiragana/katakana.