xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/regexprange.awk (revision ce17336ed725d3b7fdff67bf0a0ee2b55018fec6)
1BEGIN {
2	range = "[a-dx-z]"
3
4	split("ABCDEFGHIJKLMNOPQRSTUVWXYZ", upper, "")
5	split("abcdefghijklmnopqrstuvwxyz", lower, "")
6
7	for (i = 1; i in upper; i++)
8		printf("%s ~ %s ---> %s\n",
9			upper[i], range, (upper[i] ~ range) ? "true" : "false")
10
11	for (i = 1; i in lower; i++)
12		printf("%s ~ %s ---> %s\n",
13			lower[i], range, (lower[i] ~ range) ? "true" : "false")
14}
15