From: Siraaj Khandkar Date: Wed, 4 Sep 2019 23:07:21 +0000 (-0400) Subject: Warn if list item appears more than once X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=9e4b0a7a58b3d7803c171eab2d146237b55521c0;p=khome.git Warn if list item appears more than once --- diff --git a/list b/list index 04d5d3c..2c518e8 100755 --- a/list +++ b/list @@ -6,6 +6,9 @@ END { for (x in xs) { + if (xs[x] > 1) { + printf ">>> [WARNING] : '%s' was listed %d times.\n", x, xs[x] > "/dev/stderr" + } printf("%s%s", sep, x) sep = " " }