index.txt
DB(1) General Commands Manual 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: -D In‐ cre‐ ment de‐ bug‐ ging level. Cur‐ rently there are 4 lev‐ els of de‐ bug‐ ging, rang‐ ing from con‐ di‐ tions that cause a core dump to a call trace of the user- ac‐ ces‐ si‐ ble rou‐ tines in the DB li‐ brary. -L Set an ad‐ vi‐ sory lock on the data‐ base. -U Clear an ad‐ vi‐ sory lock on the data‐ base. -c Cre‐ ate (or trun‐ cate) the named data‐ base. -ffilename Names the data‐ base. -t Pro‐ duce a ta‐ ble of con‐ tents of the data‐ base. -l Pro‐ duce a list‐ ing of the keys and records of the data‐ base. -kkey Set the value of the cur‐ rent key. -ddata Set the value of the cur‐ rent data. -p Put the cur‐ rent data at the cur‐ rent key. -g Get (and print) the data at the cur‐ rent key. -r Re‐ move (delete) the data at the cur‐ rent key. -a Ap‐ pend the cur‐ rent data to the data stored at the cur‐ rent key. -i In‐ sert the cur‐ rent data in front of the data stored at the cur‐ rent key. SEE ALSO 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. DB(1)