MegaTools.live

Remove duplicate lines

Keep the first copy of each exact line and preserve its position.

How to use Remove duplicate lines

Clean a pasted list while keeping its original sequence. Matching is case-sensitive and includes spaces, so trim the lines first if accidental padding should be ignored.

Worked example

Input
red
blue
red
Output
red
blue