ubuntu-buildroot/output/build/host-gawk-5.2.0/awklib/eg/misc/arrayorder.awk

11 lines
117 B
Awk

{
if ($1 > max)
max = $1
arr[$1] = $0
}
END {
for (x = 1; x <= max; x++)
print arr[x]
}