Commit | Line | Data |
---|---|---|
d928c03b SK |
1 | #! /usr/bin/awk -f |
2 | ||
3 | ! /^\#/ && ! /^$/ { | |
4 | xs[$1]++ | |
5 | } | |
0b43a166 | 6 | |
d928c03b SK |
7 | END { |
8 | for (x in xs) { | |
9e4b0a7a SK |
9 | if (xs[x] > 1) { |
10 | printf ">>> [WARNING] : '%s' was listed %d times.\n", x, xs[x] > "/dev/stderr" | |
11 | } | |
0b43a166 SK |
12 | printf("%s%s", sep, x) |
13 | sep = " " | |
d928c03b SK |
14 | } |
15 | } |