From 2bdd00aa69b901e5230c9b8c24727011626ebeaa Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Mon, 15 Jan 2024 13:35:27 -0500 Subject: init --- cdbget.1 | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 cdbget.1 (limited to 'cdbget.1') 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) -- cgit v1.2.3