dbmdump - dump all nodes from a dbm file


dbmdump [ options ] dbmfile


dbmdump dumps a dbm database as plain text. All nodes and values are printed, one per line, separated by a tab character. (The order in which the nodes are printed is of course arbitrary.)

The option flags are:

Data values being dumped are expected to be arbitrary binary data.
Dump data values only, not keys.
List: print keys only, not values.
Multiline: if a value consists of multiple lines (i.e. contains embedded newline characters), print the second and following lines preceded by an extra tab character. (Also essentially implies -nl.)
If the last character of a value happens to be a newline, don't print an extra newline.
Hexadecimal: print data values as a string of hex digits. (With -ml, break long hex strings onto multiple lines.)
Print program's version number.
-?, -h
Print a brief usage summary / help message.

dbmdump's output is suitable for piping into dbmstore's file-input mode, for reconstructing or otherwise copying dbm files. Furthermore, if the -ml option flag is used with both dbmdump and dbmstore, multiline nodes can be copied as well. (Furthermore, if the -x option flag is used with both dbmdump and dbmstore, binary data can be copied as well.)


This documentation corresponds to version 2.3 of the dbmtools package.

See http://www.eskimo.com/~scs/src/#dbmtools for possible updates.


dbmstore, dbmfetch, dbmdelete, dbmutil
dbm(3), ndbm(3), gdbm(3)


Steve Summit, scs@eskimo.com