When duplicate lines sneak in
Merged spreadsheets, combined mailing lists, log files tailed twice, and copy-pasted data from multiple sources all tend to accumulate exact repeats. A quick visual scan rarely catches every one, especially once a list runs past a screen's worth of lines. This tool compares every line against every other line and keeps just one copy of each.
By default it preserves your original ordering — the first time a line dedupes it stays where it was, rather than the whole list being resorted — so a deduplicated list is a strict subset of what you pasted in, easy to diff against the original if you need to check what was removed.
Example
Input:
apple
banana
Apple
cherry
banana
dateWith Ignore letter case on, the result is:
apple
banana
cherry
date“Apple” was treated as a duplicate of “apple” and dropped; without that option, both would survive as distinct lines.
Doing the same thing on the command line
sort -u file.txt # sorted, unique lines
awk '!seen[$0]++' file.txt # unique lines, original order preserved