summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/scripts/stats/dupe.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/scripts/stats/dupe.awk')
-rwxr-xr-xcontrib/ntp/scripts/stats/dupe.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/ntp/scripts/stats/dupe.awk b/contrib/ntp/scripts/stats/dupe.awk
new file mode 100755
index 0000000..317c2a4
--- /dev/null
+++ b/contrib/ntp/scripts/stats/dupe.awk
@@ -0,0 +1,8 @@
+#
+# delete duplicate lines
+#
+{
+ if (old != $0)
+ printf "%s\n", $0
+ old = $0
+}
OpenPOWER on IntegriCloud