summaryrefslogtreecommitdiff
path: root/cdbget.1
blob: f3e83507e52fd6aaca649737292dabc8b0bb8689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.Dd $Mdocdate$
.Dt CDBGET 1
.Os
.Sh NAME
.Nm cdbget
.Nd print the data associated with one key in a cdb
.Sh SYNOPSIS
.Nm
.Ar KEY Op Ar SKIP
<
.Ar CDB
.Sh DESCRIPTION
.Nm
finds the record associated with a given
.Ar KEY
in a
.Xr cdb 5
and writes the data in the record to stdout.
If a
.Ar SKIP
is given,
.Nm
skips the first
.Ar SKIP
records matching the given
.Ar KEY
and writes the data in the
.Ar SKIP Ns +1th
record to stdout.
.Sh EXIT STATUS
.Bl -tag
.It 0
Success.
.It 1
Key not found.
.It 100
Wrong usage.
.It 111
System call failed.
.El
.Sh SEE ALSO
.Xr cdb 5 ,
.Xr cdbdump 1 ,
.Xr cdbmake 1
.Sh AUTHORS
.An Sam Nystrom Ao Mt sam@samnystrom.dev Ac
.An D. J. Bernstein (cdb and cdbmake formats, original cdbget program)
.An Laurent Bercot (cdb read/write library)