Map file to CDB-input converter |
|
MAP2CDB(1) MAP2CDB MAP2CDB(1)
NAME
map2cdb - convert plain text file(s) to cdbmake-compatible
format
SYNOPSIS
map2cdb [ file* ]
DESCRIPTION
map2cdb reads one or more files and converts their con-
tents to a format expected by the cdbmake(1)-command to
create databases. map2cdb's input consists of key/value-
pairs which are to be prepared for further processing with
cdbmake. If no files are specified, map2cdb reads its
input from stdin.
INPUT FORMAT
map2cdb reads the input, line by line, and expects each of
them to have the format
key value
where key is any token of characters without white-spaces
and value is any token of characters terminated by the end
of the line. key and value are separated by one or more
white-space characters.
map2cdb converts each input line into the following for-
mat:
+keylen,valuelen:key->value
map2cdb skips empty lines and lines which start with a
pound sign (#). map2cdb does not check its input for
duplicate keys. If you want to make sure that no key is
stored more than once, you should pipe the input through
sort -u
SEE ALSO
cdbmake(1), sort(1).
|
|
|
Last modified at 2000-08-26. |
|