summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/splitdef.awk
blob: 694db80a6c3362b77bb5e2e901637c17852d03e6 (plain)
1
2
3
4
5
6
7
BEGIN {
	data = "abc:easy:as:one:two:three"
	FS = ":"
	FIELDWIDTHS = "3 1 4 1 2 1 3 1 3 1 5"
	n = split(data, a)
	printf "n = %d, a[3] = %s\n", n, a[3]
}
OpenPOWER on IntegriCloud