消えた行数を確認する方法
- 貼り付ける
- 整える
- 行数を見る
重複を消したとき、何行が消えたのかを確認することは大切です。想定より多く消えた、または少なかった場合は、設定を見直す合図になります。重複した行を消す・並べ替える は、行数を3つ表示します。
手順
- 「整える前(1行に1つ)」に、リストを貼り付けます。
- 整え方(重複を消す・空行を消す・空白を消す)を選びます。
- 結果の欄で、次の3つの数字を確認します。
- 「もとの行数」
- 「整えた後の行数」
- 「消えた行数」
- 数字に納得したら、「結果をコピー」でコピーします。
数字の見方
- 消えた行数が0:重複も、空行も、なかった。または、オプションがオフ。
- 思ったより少ない:空白や、大文字・小文字の違いで、重複と判断されていない。
- 思ったより多い:「空行を消す」で、空行がまとめて消えた。または、同じ内容の行が多かった。
確認の方法
- 消えた行数が、想定どおりか見る。
- 想定と違うときは、オプションを1つずつ変えて、数字の変化を見る。
- 「整えた後」を、目で確認する。
空行と重複を、分けて数える
どちらで消えたのかを知りたいときは、まず空行だけを消して、数字を見ます。次に、重複を消して、もう一度数字を見ます。
向いている場面
- 名簿・リストの整理の記録をつける
- 重複がどれくらいあったかを、報告する
- 想定外の重複を、疑う
例
200行のリストで、消えた行数が3行だった。10行くらいを予想していたため、空白を消すオプションを足したら、12行になった。
つまずきやすい点
- 行数の数え方:最後の改行の後の空行は、数に入る場合がある。
- 貼り付けで行数が変わる:貼り付け元の形式を確認する。
よくある質問
消えた行の内容は、見られますか?
このツールでは、行数のみ表示されます。内容を確認したい場合は、整える前の欄を見直します。
まとめ
3つの行数で、整えた結果をチェック。想定と違うときは、設定を見直しましょう。
重複した行を消す・並べ替えるを使う(無料)あわせて使えるツール
- 文章の改行を消す・整える:PDFなどからコピーした文章の改行を整えます。
- 文字数カウント(エントリーシート・レポート用):文章の文字数・行数・原稿用紙の枚数などを数えます。
- 全角・半角、ひらがな・カタカナを変換する:全角・半角、ひらがな・カタカナを変換します。
同じツールの、ほかの解説
How to See How Many Lines Were Removed
- 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".
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.