如何刪除重複行(免費,手機也能用)
要點
- 貼上文字
- 刪除重複項
- 複製結果
A list of names or email addresses has the same lines many times. Finding and deleting them by hand is tiring. Remove Duplicate Lines and Sort a List removes duplicate lines and can also sort. The text you enter is never sent off your device.
步驟
- Paste the list into "Before tidying (one per line)". Enter one item per line.
- Choose how to tidy.
- "Remove duplicate lines"
- "Ignore case when checking duplicates"
- "Remove spaces at the start and end of lines"
- "Remove empty lines"
- Under "Sort", choose from "Do not sort", "A–Z / Japanese order", "Reverse order" and "Shortest first".
- The result appears under "After tidying". Copy with "Copy result".
The "Original line count", "Line count after" and "Lines removed" are shown. Check the number removed.
What the options mean
- Remove duplicate lines: keep only one of lines with the same content (the first to appear stays).
- Ignore case: treat "ABC" and "abc" as the same.
- Remove spaces at the start and end of lines: strip leading and trailing spaces before comparing.
- Remove empty lines: delete lines with nothing written.
適合
- Tidying a list of email addresses
- Checking a roster or attendee list for duplicates
- Tidying a keyword list
- Pasting one column of Excel or CSV and removing duplicates
示例
Pasted a 120-line attendee list and chose "Remove duplicate lines" and "Remove empty lines". The result was 108 lines, with 12 removed.
Common stumbling blocks
- Duplicates do not disappear: blanks at the start or end of lines. Choose "Remove spaces at the start and end of lines".
- Remain only because of case: choose the option to ignore case.
- Full-width and half-width are treated as different: tidy those first.
Frequently asked questions
Is the original order kept?
With "Do not sort", only duplicates are removed, keeping the original order.
Is the text sent?
No. It is processed inside the browser.
小結
Paste and choose options. Always check the number of lines removed.
使用「刪除重複行並排序」(免費)搭配使用的工具
- 刪除和整理文字中的換行:整理從 PDF 等處複製的文字中的換行。
- 文字數統計(用於求職申請表和報告):統計文字的字數、行數和稿紙張數。
- 全形、半形、平假名、片假名互相轉換:全形與半形、平假名與片假名互相轉換。