xref: /illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/t.split8 (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1{
2	n = split ($0, x, /[ 	]+/)
3	print n
4	if (n != NF)
5		print "split botch at ", NR, n, NF
6	for (i=1; i<=n; i++)
7		if ($i != x[i])
8			print "different element at ", i, x[i], $i
9}
10