⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbz.1

📁 gcc-2.95.3 Linux下最常用的C编译器
💻 1
字号:
.TH DBZ 1 "11 Feb 1992".BY "C News".SH NAMEdbz \- operate on dbz databases of text.SH SYNOPSIS.B dbz[.BR \- { axmc }] [.B \-tc] [.B \-llength] [.BR \- { qiue }] [.B \-fold] [.B \-pparms] database file ....SH DESCRIPTION.I Dbzis a shell-level interface to the.IR dbz (3z)database routines for indexed access to a text file..PPThe.I databasefile must be a text file,one line per database record,with the key the first field on the line.The.B \-toption sets the field-separator character; the default is tab.Setting the separator character to NUL (with.BR "\-t\ ''" )makes the whole line the key.Lines must not exceed 1023 bytes in length including the newline;this limit can be increased with the.B \-loption.The limitations and restrictions of.IR dbz (3z)must also be observed;in particular, it remains the user's responsibility to ensure thatno attempt is made to store two entries (whether identical or not)with the same key..PPIn the absence of options,.I dbzcreates a.IR dbz (3z)index for the database;the index comprises files.IB database .pagand.IB database .dirin the same directory.Any previous index is silently overwritten.The.BR \-a ,.BR \-x ,.BR \-m ,and.B \-coptions specify other operations..PPWith.BR \-a ,.I dbzappends lines from the.IR file (s)(standard input if none)to the database, updating both thetext file and the indexes..PPWith.BR \-x ,.I dbzreads keys from the.IR file (s)(standard input if none)and prints (on standard output) the corresponding lines, if any,from the database.The input is in the form of database lines, although only the keys aresignificant.The.B \-qoption makes.B \-xprint the input lines whose keys are found instead of the databaselines; this is somewhat faster..PPWith.BR \-m ,operation is the same as for.B \-xexcept that the keys which are \fInot\fR present in the database are printed..PPWith.BR \-c ,.I dbzchecks the database for internal consistency.The.B \-qoption causes this check to be done more quickly but less thoroughly(each key is looked up in the index, but no check is made to be surethat the index entry points to the right place)..PPThe.B \-ioption suppresses the use of.IR dbz (3z)'s.I incorefacility.This makes accesses slower, but keeps the files currentduring updatingand reducesstartup/shutdown overhead..PPNormally,.I dbzchecks whether a key is already in the database before adding it.The.B \-uoption suppresses this check, speeding things up at the expense of safety..PPA new index is normally created with default size,case mapping, and tagging.The default size is right for 90-100,000 records.The default case mapping is right for RFC822 message-ids.See.IR dbz (3z)for what tagging is about.(Note, these defaults can be changed when.IR dbz (3z)is installed.).PPIf the.B \-foption is given,size, case mapping, and taggingare instead initialized based on thedatabase.IR old .This is mostly useful whencreating a new generation of an existing database.(See the description of.I dbzagainin.IR dbz (3z)for details.).PPIf the.B \-poption is given, the.I parmsstring specifies the size, case mapping, and tagging.If.I parmsis a single decimal number,that is taken as the expected number of recordsin the index, with case mapping and tagging defaulted.Alternatively,.I parmscan be three fields\(ema decimal number, a case-mapping code character, and ahexadecimal tag mask\(emseparated by white space.The decimal number is, again, the expected number of records;0 means ``use the default''.See.IR dbz (3z)for possible choices of case-mapping code,but in particular,.B 0means ``no case mapping''.See.IR dbz (3z)for details on tag masks;0 means ``use the default''..PPIf the.B \-eoption is given, the decimal number in.B \-pis taken to be the exact table size, not the expected number of records,and invocation of.I dbzsize(see.IR dbz (3z))to predict a good size for that number of records is suppressed..PPThe.B \&.pagfile is normally about 6 bytes per record (based on the estimate given to.B \-por the previous history of the.B \-fdatabase).The.B \&.dirfile is tiny..SH SEE ALSOdbz(3z).SH HISTORYWritten at U of Toronto by Henry Spencer, for the C News project.See.IR dbz (3z)for the history of the underlying database routines..SH BUGSThere are a number of undocumented options with obscure effects,meant for debugging and regression testing of.IR dbz (3z)..PPPermissions for the index files probably ought to be taken from thoseof the base file..PPThe line-length limit is a blemish, alleviated only slightly by.BR \-l .

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -