xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/splitdef.awk (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
1BEGIN {
2	data = "abc:easy:as:one:two:three"
3	FS = ":"
4	FIELDWIDTHS = "3 1 4 1 2 1 3 1 3 1 5"
5	n = split(data, a)
6	printf "n = %d, a[3] = %s\n", n, a[3]
7}
8