aboutsummaryrefslogtreecommitdiff
path: root/bin/ddup.awk
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ddup.awk')
-rw-r--r--bin/ddup.awk6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ddup.awk b/bin/ddup.awk
index 2dec1d00..63381cfb 100644
--- a/bin/ddup.awk
+++ b/bin/ddup.awk
@@ -1,2 +1,6 @@
# Skip duplicate lines (without requiring sorted input)
-!seen[$0]++
+$0 in seen { next }
+length($0) {
+ seen[$0] = 1
+ print
+}