xref: /freebsd/share/doc/usd/13.viref/merge.awk (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1# merge index entries into one line per label
2$1 == prev {
3	printf ", %s", $2;
4	next;
5}
6{
7	if (NR != 1)
8		printf "\n";
9	printf "%s \t%s", $1, $2;
10	prev = $1;
11}
12END {
13	printf "\n"
14}
15