1 2 3 4 5 6
# Skip duplicate lines (without requiring sorted input) $0 in seen { next } length($0) { seen[$0] = 1 print }