aboutsummaryrefslogtreecommitdiff
path: root/bin/ddup.awk
blob: 63381cfbcb1f0a670c6c333967d285fb0f3b3059 (plain) (blame)
1
2
3
4
5
6
# Skip duplicate lines (without requiring sorted input)
$0 in seen { next }
length($0) {
    seen[$0] = 1
    print
}