mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-18 08:52:42 +01:00
18fd508d01
right ;). Reviewed by: Sean Eric Fagan
17 lines
222 B
Awk
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"
|
|
}
|