xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/negrange.awk (revision 9b9d39d2a32ff806d2431dbcc50968ef1e6d46b2)
1BEGIN {
2	s = "Volume 8, Numbers 1-2 / January 1971"
3        n = split(s, parts, "[^-A-Za-z0-9]+")
4	print "n =", n
5	for (i = 1; i <= n; i++)
6		printf("s[%d] = \"%s\"\n", i, parts[i])
7}
8