DB(1)                                                       DB(1)

     NAME
          DB - database command interface

     SYNOPSIS
          DB [ -D ] [ -c ] -ffilename [ -L ] [ -t | -l ] [ -kkey [
          -ddata ] ] [ -g | -p | -r | -a | -i ] [ -U ] ...

     DESCRIPTION
          DB provides a command-level interface to the DB(3) routines
          (q.v.).

          The options and their meanings are: 24072.if 336.sp40u
          -D   Increment debugging level.  Currently there are 4 lev-
               els of debugging, ranging from conditions that cause a
               core dump to a call trace of the user-accessible rou-
               tines in the DB library.

          -L   Set an advisory lock on the database.

          -U   Clear an advisory lock on the database.

          -c   Create (or truncate) the named database.

          -ffilename
               Names the database.

          -t   Produce a table of contents of the database.

          -l   Produce a listing of the keys and records of the data-
               base.

          -kkey
               Set the value of the current key.

          -ddata
               Set the value of the current data.

          -p   Put the current data at the current key.

          -g   Get (and print) the data at the current key.

          -r   Remove (delete) the data at the current key.

          -a   Append the current data to the data stored at the cur-
               rent key.

          -i   Insert the current data in front of the data stored at
               the current key.

     SEE ALSO

     DB(1)                                                       DB(1)

          DB(3), DBcp(1), DBcvt(1).

     DIAGNOSTICS
          The diagnostics are intended to be self-explanatory.
          Mostly, they're complaints about missing arguments.

     BUGS
          Nonascii characters cannot be passed to DB because the shell
          strips the 8th (most significant) bit.