xref: /illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/t.array (revision b30d193948be5a7794d7ae3ba0ed9c2f72c88e0f)
1	{ x[NR] = $0 }
2
3END {
4	i = 1
5	while (i <= NR) {
6		print x[i]
7		split (x[i], y)
8		usage = y[1]
9		name = y[2]
10		print "   ", name, usage
11		i++
12	}
13}
14