xref: /freebsd/contrib/one-true-awk/testdir/t.array1 (revision e32fecd0c2c3ee37c47ee100f169e7eb0282a873)
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