dbmstore stores key/value pairs in dbm databases. In the simple invocation
dbmstore dbmfile key valuethe given value is stored under the key key in the dbm file dbmfile, which is created if necessary. (It is permissible for value to contain whitespace; as entered on the command line it may be quoted or not, with the quotes being mandatory only if precise control is required over which whitespace characters the value contains.)
In the second form
dbmstore -f inputfile dbmfilethe key(s) and value(s) are read from the given inputfile. The first word on each line in the input file is the key, the remainder (separated from the key by arbitrary whitespace) is the value. The input file may contain multiple lines, meaning that multiple data nodes will be stored. The inputfile may also be given as -, meaning that the keys and values will be read from the standard input.
There are a few other option flags:
The input-file reading mode is suitable for use in conjunction with dbmdump, 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.
Steve Summit, firstname.lastname@example.org