HardenedBSD/usr.bin/vi/USD.doc/vi.ref/merge.awk
Sean Eric Fagan 18fd508d01 Latest public release of nvi, from Keith Bostic. I hope I got this
right ;).
Reviewed by:	Sean Eric Fagan
1994-08-16 23:36:45 +00:00

17 lines
222 B
Awk

# @(#)merge.awk 8.3 (Berkeley) 5/26/94
#
# merge index entries into one line per label
$1 == prev {
printf ", %s", $2;
next;
}
{
if (NR != 1)
printf "\n";
printf "%s \t%s", $1, $2;
prev = $1;
}
END {
printf "\n"
}