Option 'H' --> Output Filename On First Match. QTGrep normally outputs the filename of the file being scanned at the following times:
  1. When the file is opened, forced with the 'o' option, or
  2. When a match line is output.
If the filename is desired, but not with each match line output, then the 'H' option forces the filename to be output only when a match is found in a file and then only before the first match found.

This is in contrast with the 'o' option which outputs the filename when the file is opened and the 'F' option which outputs the filename with each matching line.

Incompatible Options Are:
W
Write Compiled Search Patterns
Z
File  Preview
h
No Filename Headers
r
Replace Matches (Req Pat File)
z
Simulate Replace Matches


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