3e1db26a5a
Removing elvis, importing nvi, ctags, updating libedit. Change-Id: I881eb04d2dc64cf112facd992de1114e1a59107f
18 lines
286 B
Awk
18 lines
286 B
Awk
# $NetBSD: merge.awk,v 1.1 2008/09/02 09:25:39 christos Exp $
|
|
#
|
|
# @(#)merge.awk 8.3 (Berkeley) 5/25/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"
|
|
}
|