1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/cdb/cdbget.1
2015-01-23 17:24:36 +01:00

39 lines
651 B
Groff

.TH cdbget 1
.SH NAME
cdbget \- look up one key in a constant database
.SH SYNOPSIS
.B cdbget
.I key
.SH DESCRIPTION
.B cdbget
searches for a record indexed by
.I key
in a constant database.
The constant database must be readable (and seekable)
on
.BR cdbget 's
standard input.
.B cdbget
normally (1) prints the data in the first matching record
and (2) exits 0.
Note that
.B cdbget
does not check for write errors,
so it should be used only inside a pipe.
If
.I key
is not in the database,
.B cdbget
exits 1 without printing anything.
If
.B cdbget
encounters a read error,
it complains and exits 111.
.SH "SEE ALSO"
cdbdump(1),
cdbmake(1),
cdb(3)