Hashman (http://hashman.sourceforge.net) by Robert Synnott (robertsynnott@eircom.net)
This is a simple command line and text interface hash database access tool. It currently supports GDBM, traditional DBM and Berkeley/Sleepycat DB.
- GDBM
- Type "make gdbm" You will need GDBM development libraries and runtime libraries, obviously.
- DBM
- If you aren't using GDBM's implementation of DBM, change dbm.c to include your one instead and change the makefile to link it instead of linking GDBM.
Berkeley/Sleepycat DB:
(I enjoy saying Sleepycat)
If you have your Sleepycat libraries and includes in a place other
than the default (UNIX) of /usr/local/BerkeleyDB.4.1/, change the
makefile appropriately.
General Usage:
If you type ./hashman-<db> <name-of-db>, where <db> is gdbm, dbm or
bdbm, and <name-of-db>is the file you want to work with, an
interactive interface will be launched.
Alternatively, you can do:
hashman <name of db file> <command> [param1] [param2]
Commands:
INSERT <KEY> <VALUE> - Insert specified value under specified key
VIEW <KEY> - View the value associated with that key
DELETE <KEY> - Delete the entry
LIST [FILTER] - Lists keys; if FILTER exists lists only those containing it
In either case, a new database(hash-table on bdbm) will be created if none exists where you said.
This software is under the GNU Public License.
