Emacs database files

Each Emacs database is stored in a set of three files whos name is the name of the database and whos extentions are .DIR, .PAG and .DAT.

The Emacs database commands use these database files.

You can maintain these database files using the Emacs support tools.

dbcreate db-name [-c]

This command will create a database named 'db-name'. Use the options -c parameter to force an empty database to be created. Normally dbcreate will report an error if you attempt to create a database that already exists.

dbadd db-name key <input-file

Add a new entry to database 'db-name'. The entry will have the key 'key' and the contents of the entry will be taken from standard input. Use redirection to as above to add the contents of a file.

dbdel db-name key

Delete the entry named 'key' from the database 'db-name'.

dbprint db-name key >output-file

Fetch the contents of entry 'key' from the database 'db-name'. The contents of the entry are output to standard output. Use redirection to save the contents to a file, as show above.

dblist db-name

Print a list of all the keys in the database names 'db-name'.