Option 'k' --> Count of Matchs, Each File.  Normally QTGrep does not output a count of the number of matches found in a given file.  If a count is desired by the user, this option can be used to force QTGrep to output a count of all matches found and the number of records containing matches. The count is output at the end of each file scanned for which this option is active.  The format is identical to that used for the 'c' option.
  Filename
Match Count: mmmmmm
Pattern 1 Count: ccccc1 - User Specified Comment for Pattern 1
Pattern 2 Count: ccccc2 - User Specified Comment for Pattern 2
Pattern 3 Count: ccccc3 - User Specified Comment for Pattern 3
Pattern 4 Count: ccccc4 - User Specified Comment for Pattern 4
Pattern 5 Count: ccccc5 - User Specified Comment for Pattern 5
Matching Record Count: llllll
Records Scanned: ssssss

where: mmmmmm == Number of Matches in File
         cccccx == Number of Matches for Pattern Number x
         llllll == Number of Records Containing Matches in File
         ssssss == Number of Records in File

Note:  mmmmmm and llllll may not be equal if the 'a' option is active and/or if any matches spann multiple records

Note: mmmmmm will equal the summ of all pattern counts, cccccx.
          mmmmmm == ccccc1 + ccccc2 + ccccc3 + ...

Note:  The individual Pattern counts are output only if more than one pattern has been specified for searching.  The user comment appended to the end of each pattern count is specified in pattern files using the 'm' command.

Note:  if only the matching count is desired and the output of the matching records is not desired, then the 'c' option should be used.  If only the cumulative count across all files is desired, then the 's' option should be used.

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