groff: update vendor branch to v1.20.1
[dragonfly.git] / contrib / groff / src / utils / lookbib / lookbib.man
1 .ig
2 Copyright (C) 1989-2000, 2001, 2004, 2009
3   Free Software Foundation, Inc.
4
5 Permission is granted to make and distribute verbatim copies of
6 this manual provided the copyright notice and this permission notice
7 are preserved on all copies.
8
9 Permission is granted to copy and distribute modified versions of this
10 manual under the conditions for verbatim copying, provided that the
11 entire resulting derived work is distributed under the terms of a
12 permission notice identical to this one.
13
14 Permission is granted to copy and distribute translations of this
15 manual into another language, under the above conditions for modified
16 versions, except that this permission notice may be included in
17 translations approved by the Free Software Foundation instead of in
18 the original English.
19 ..
20 .
21 .
22 .TH @G@LOOKBIB @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
23 .
24 .
25 .SH NAME
26 @g@lookbib \- search bibliographic databases
27 .
28 .
29 .SH SYNOPSIS
30 .B @g@lookbib
31 [
32 .B \-v
33 ]
34 [
35 .BI \-i string
36 ]
37 [
38 .BI \-t n
39 ]
40 .IR filename \|.\|.\|.
41 .
42 .PP
43 It is possible to have whitespace between a command line option and its
44 parameter.
45 .
46 .
47 .SH DESCRIPTION
48 .B @g@lookbib
49 prints a prompt on the standard error (unless the standard input is not
50 a terminal),
51 reads from the standard input a line containing a set of keywords,
52 searches the bibliographic databases
53 .IR filename \|.\|.\|.\&
54 for references containing those keywords,
55 prints any references found on the standard output,
56 and repeats this process until the end of input.
57 For each database
58 .I filename
59 to be searched,
60 if an index
61 .IB filename @INDEX_SUFFIX@
62 created by
63 .BR @g@indxbib (@MAN1EXT@)
64 exists, then it will be searched instead;
65 each index can cover multiple databases.
66 .
67 .
68 .SH OPTIONS
69 .TP
70 .B \-v
71 Print the version number.
72 .
73 .TP
74 .BI \-i string
75 When searching files for which no index exists,
76 ignore the contents of fields whose names are in
77 .IR string .
78 .
79 .TP
80 .BI \-t n
81 Only require the first
82 .I n
83 characters of keys to be given.
84 Initially
85 .I n
86 is\~6.
87 .
88 .
89 .SH FILES
90 .TP \w'\fIfilename\fB@INDEX_SUFFIX@'u+2n
91 .IB filename @INDEX_SUFFIX@
92 Index files.
93 .
94 .
95 .SH "SEE ALSO"
96 .BR @g@refer (@MAN1EXT@),
97 .BR lkbib (@MAN1EXT@),
98 .BR @g@indxbib (@MAN1EXT@)
99 .
100 .\" Local Variables:
101 .\" mode: nroff
102 .\" End: