xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/regexprange.awk (revision d8849d7dee03b84a3fa281ec65eb9e3d86d3756b)
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