summaryrefslogtreecommitdiff
path: root/cdbget.1
diff options
context:
space:
mode:
Diffstat (limited to 'cdbget.1')
-rw-r--r--cdbget.148
1 files changed, 48 insertions, 0 deletions
diff --git a/cdbget.1 b/cdbget.1
new file mode 100644
index 0000000..f3e8350
--- /dev/null
+++ b/cdbget.1
@@ -0,0 +1,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)