Option 'B' --> Record <-> Buffer Operation.  QTGrep reads chunks of a file to be scanned into a buffer and then scans the buffer for matches to Regular Expressions or Keywords.  This is much faster than reading a file record by record and then scanning each individual record for matches.  In addition, this method allows matching strings to span record boundaries.  However, in some circumstances the user may wish to scan individual records, e.g., to ensure that the records match those read by the users application program(s).  This option may be used to switch QTGrep from buffer to record or from record to buffer operation by specifying this option before the scan files of concern.  In record operation, QTGrep ensures that matching strings cannot span record boundaries.  Thus, all matching strings are contained within a single record.  In buffer operation, a matching string may be contained in two or more records. In addition, QTGrep allows the user to specify either PC/MS-DOS or U**x style records with the 'm' option.  If a totally different record terminator is desired, the '#t' operator in pattern files allows the user to specify the record terminator(s) desired.  See The '?#' information screens.

This is a local option and may be turned on or off for separate files as desired.

The corresponding long option is: --scan-operation=(record|buffer)

Incompatible Options Are:
W
Write Compiled Search Patterns
Z
File  Preview


© Terry D. Boldt 1997-2005
All Rights Reserved
Last Updated: Nov. 26, 2005