aboutsummaryrefslogtreecommitdiff
path: root/testdir/t.split9a
blob: b7d8d8544a62f545a1fc219cc89eeb0beefca567 (plain)
1
2
3
4
5
6
7
8
9
BEGIN { FS = "a" }
{
	n = split ($0, x, FS)
	if (n != NF)
		print "botch at ", NR, n, NF
	for (i=1; i<=n; i++)
		if ($i != x[i])
			print "diff at ", i, x[i], $i
}