xref: /aosp_15_r20/external/one-true-awk/testdir/t.array (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
1*9a7741deSElliott Hughes	{ x[NR] = $0 }
2*9a7741deSElliott Hughes
3*9a7741deSElliott HughesEND {
4*9a7741deSElliott Hughes	i = 1
5*9a7741deSElliott Hughes	while (i <= NR) {
6*9a7741deSElliott Hughes		print x[i]
7*9a7741deSElliott Hughes		split (x[i], y)
8*9a7741deSElliott Hughes		usage = y[1]
9*9a7741deSElliott Hughes		name = y[2]
10*9a7741deSElliott Hughes		print "   ", name, usage
11*9a7741deSElliott Hughes		i++
12*9a7741deSElliott Hughes	}
13*9a7741deSElliott Hughes}
14