Option 'n' --> Output Record Numbers. By default QTGrep
outputs
only those records which contain matches to the search patterns.
The
record numbers are not output. This may make it difficult to know
precisely
which records in a file do contain the matches. This option
forces
QTGrep to output the record number with the matching record. The
format
of the output is:
rrrrrrR: matching record
| |
-------- Record Number Field, Blank Fill
The record number field is always six, 6, digits wide. The record
number
is left justified and blank filled in the field. 'R:' or
'b:'
immediately follows the record number. 'R:' is used for
Forward
searchs and 'b:' is used in backward searchs. See option
'b'
for information on backward searchs.
If the matching string spans more than one record and the QTGrep
default
buffer mode of operation is active (refer to the B and U options and
the
'#t' operator for pattern files), the record number is left justified
and
zero, '0', filled in the record number field. For example:
00rrrrR: matching record 1
00rrrrR: matching record 2
00rrrrR: matching record 3
| |
-------- Record Number Field, Zero Fill
If the filename is also output, refer to the 'h' option, the format is:
filename.ext: rrrrR: matching record
| | | |
| | ------ Record Number Field, Blank Fill
--------------------- Filename Field
If the pattern number is also output, refer to the 'N' option, the
output
format is:
filename.ext: eeeeeE: rrrrR: matching record
| | | | | |
| | | | ------ Record Number Field
| | --------------- Expression Number Field, Blank Fill
----------------------------- Filename Field
The order of output is as follows:
- Filename ('h' option)
- Expression Number ('N' option)
- Match String Index ('I' option)
- Match String Length ('I' option)
- Record Number ('n' option)
- Match Record or String ('M' option)
This is a local option and may be turned on or off for separate files
as
desired.
Incompatible Options Are:
W
|
Write Compiled Search Patterns
|
Z
|
File Preview
|
r
|
Replace Matches (Req Pat File)
|
z
|
Simulate Replace Matches
|
© Terry D. Boldt 1997-2005
All Rights Reserved
Last Updated: Feb. 03, 2005