repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
usr.bin
/
nvi
/
docs
/
USD.doc
/
vi.ref
/
merge.awk
blob
17df37eb2a147bc684a7b7be7229ea96ccb07d19
1
# $NetBSD: merge.awk,v 1.2 2001/03/31 11:37:48 aymeric Exp $
2
#
3
# @(#)merge.awk 8.3 (Berkeley) 5/25/94
4
#
5
# merge index entries into one line per label
6
$
1
== prev
{
7
printf
", %s"
,
$
2
;
8
next
;
9
}
10
{
11
if
(
NR
!=
1
)
12
printf
"
\n
"
;
13
printf
"%s
\t
%s"
,
$
1
,
$
2
;
14
prev = $
1
;
15
}
16
END
{
17
printf
"
\n
"
18
}