xref: /freebsd/contrib/one-true-awk/testdir/t.array1 (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1{for(i=1; i<=NF; i++) {
2	if (x[$i] == "")
3		y[++n] = $i
4	x[$i]++
5 }
6}
7END {
8	for (i=0; i<n; i++)
9		print (y[i], x[y[i]])
10}
11