diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-01-15 13:35:27 -0500 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-01-15 13:35:27 -0500 |
| commit | 2bdd00aa69b901e5230c9b8c24727011626ebeaa (patch) | |
| tree | 27967a3ccc64ac477cb0336f4e61282e8ab832ff /cdbget.1 | |
Diffstat (limited to 'cdbget.1')
| -rw-r--r-- | cdbget.1 | 48 |
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) |
