clears.in Menu

Remove duplicate lines

Paste a list: repeated lines go, and the order stays.

Removed 1 repeated line. Repeated: Ravi Kumar (2 times).

Count as the same
Keep
Empty lines

What does it do to a real text?

A guest list typed by two people:

Before

Asha Rao
Ravi Kumar
asha rao
Ravi Kumar
Meena Iyer

After

Asha Rao
Ravi Kumar
asha rao
Meena Iyer

Removed 1 repeated line. Repeated: Ravi Kumar (2 times).

More examples

With Capitals do not count, asha rao goes too:

Before

Asha Rao
Ravi Kumar
asha rao
Ravi Kumar
Meena Iyer

Capitals do not count

Asha Rao
Ravi Kumar
Meena Iyer

What rules does it follow?

  1. Two lines are the same when they hold the same characters in the same order.
The other 5 rules
  1. Spaces at line ends do not count (on at the start): spaces before and after the text are not compared.
  2. Capitals do not count: A and a are the same letter.
  3. The first copy of a line stays in its place and every later copy goes. With The last copy, the last one stays in its place instead.
  4. Empty lines are left where they are, unless Remove empty lines too is on.
  5. The line under the boxes names up to three lines that repeated, and how many times each one appeared.

What do people ask?

Does it sort the list?

No. To sort and remove repeats in one go, use Sort lines with Remove repeats.

Can it remove a repeated word inside a line?

No: it compares whole lines. Find and replace removes a word you name.