awk/testdir/t.array1
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

11 lines
123 B
Plaintext

{for(i=1; i<=NF; i++) {
if (x[$i] == "")
y[++n] = $i
x[$i]++
}
}
END {
for (i=0; i<n; i++)
print (y[i], x[y[i]])
}