freebsd-dev/contrib/awk/awklib/eg/misc/arraymax.awk

11 lines
103 B
Awk
Raw Normal View History

2000-08-15 10:02:07 +00:00
{
if ($1 > max)
max = $1
arr[$1] = $0
}
END {
for (x = 1; x <= max; x++)
print arr[x]
}