NAME
cdb
—
Constant database utility
SYNOPSIS
cdb |
[-hdm ] [-k
key [-cs
n]] file |
DESCRIPTION
cdb
Utility to make, dump and query
constant databases.
-h
- Print a short help text
-d
- Dump records from database file to stdout. See RECORD FORMAT
-m
- Make database file from encoded records read from stdin.
-k
key- Query database file for record
key. Only the first match is returned. To search
subsequent match, see
-s
. -c
n- Print n records from the database (default: 1).
-s
n- Skip the first n records from the database, and display the next one (default: 0).
RECORD FORMAT
A dump record is encoded as
+klen,dlen:key->data
followed by a newline. Here
klen is
the number of bytes in key and
dlen is
the number of bytes in data. The end of data is indicated by an extra
newline.
SEE ALSO
AUTHOR
Willy Goiffon <dev@z3bra.org>