Remove duplicate lines from text while preserving order. Clean up lists, logs, and data files efficiently.