README revision 1573
11573Srgrimes# @(#)README 8.2 (Berkeley) 2/21/94 21573Srgrimes 31573SrgrimesTo build this portably, try something like: 41573Srgrimes 51573Srgrimes make INC="-I../PORT/MACH/ -I../PORT/MACH/include" LIB=../PORT/MACH/libdb.a 61573Srgrimes 71573Srgrimeswhere MACH is the machine, i.e. "sunos.4.1.1". 81573Srgrimes 91573SrgrimesTo run the tests, enter "sh run.test". If your system dictionary isn't 101573Srgrimesin /usr/share/dict/words, edit run.test to reflect the correct place. 111573Srgrimes 121573Srgrimes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 131573SrgrimesThe script file consists of lines with a initial character which is 141573Srgrimesthe "command" for that line. Legal characters are as follows: 151573Srgrimes 161573Srgrimesc: compare a record 171573Srgrimes + must be followed by [kK][dD]; the data value in the database 181573Srgrimes associated with the specified key is compared to the specified 191573Srgrimes data value. 201573Srgrimese: echo a string 211573Srgrimes + writes out the rest of the line into the output file; if the 221573Srgrimes last character is not a carriage-return, a newline is appended. 231573Srgrimesg: do a get command 241573Srgrimes + must be followed by [kK] 251573Srgrimes + writes out the retrieved data DBT. 261573Srgrimesp: do a put command 271573Srgrimes + must be followed by [kK][dD] 281573Srgrimesr: do a del command 291573Srgrimes + must be followed by [kK] 301573Srgrimess: do a seq command 311573Srgrimes + writes out the retrieved data DBT. 321573Srgrimesf: set the flags for the next command 331573Srgrimes + no value zero's the flags 341573SrgrimesD [file]: data file 351573Srgrimes + set the current data value to the contents of the file 361573Srgrimesd [data]: 371573Srgrimes + set the current key value to the contents of the line. 381573SrgrimesK [file]: key file 391573Srgrimes + set the current key value to the contents of the file 401573Srgrimesk [data]: 411573Srgrimes + set the current key value to the contents of the line. 421573Srgrimeso [r]: dump [reverse] 431573Srgrimes + dump the database out, if 'r' is set, in reverse order. 441573Srgrimes 451573SrgrimesOptions to dbtest are as follows: 461573Srgrimes 471573Srgrimes -f: Use the file argument as the database file. 481573Srgrimes -i: Use the rest of the argument to set elements in the info 491573Srgrimes structure. If the type is btree, then "-i cachesize=10240" 501573Srgrimes will set BTREEINFO.cachesize to 10240. 511573Srgrimes -o: The rest of the argument is the output file instead of 521573Srgrimes using stdout. 531573Srgrimes 541573SrgrimesDbtest requires two arguments, the type of access "hash", "recno" or 551573Srgrimes"btree", and the script name. 56