Long option names may also be used with QTgrep. Long options are signaled by doubling the option flag, "--". the long option then follows the long option flag.

The following long options are available. The corresponding short single letter option is also indicated:

Those indicated with an asteric, '*', can be used before each input file.

NUM == indicates that an integer numeric should be used
(xx|yy) == indicates that one of the strings indicated should be used
Single
Letter
Option
Long Option Name
A *
--after-context=(on|off|NUM) 
B * --scan-operation=(record|buffer)
C * --cumulative-record-count=(on|off)
D * --colors=(on|off)
E * --fixed-record-length=NUM
F * --with-filename=(on|off)
G
H * --filename-on-first-match=(on|off)
I * --match-index=(on|off|hex)   
J

K
--keyword-search=(on|off)
L
No Long Option Name
M * --only-matching=(on|off)
N * --pattern-numbers=(on|off)
O * --context-lines=(on|off|NUM)
P
--no-prompt-patterns-stdinp
Q
--(quiet|silent)=(on|off)
R
--regular-expression-search=(on|off)
S
--recursive=(on|off)
T * --tagged-strings=(on|off)
U
--record-end=(unix|os2|dos|apple)
V
--verbose-count=(on|off)
W
--write-compiled=FILENAME
X * --record-end=(unix|os2|dos|apple)
Y * --before-context=(on|off|NUM)
Z
No Long Option Name
a * --find-all=(on|off)
b * --search-direction=(forward|backward)
c
--count=(on|off)
d
--restore-defaults
e * --embedded-match=(on|off)
f
--file=FILENAME
g

h * --no-filename=(on|off)
i * --ignorecase=(on|off)
j * --filename-field=(on|off|NUM)
k * --match-count-each-file=(on|off)
l * --longest-match=(on|off)
m * --max-count=NUM
n * --line-numbers=(on|off)
o * --filename-on-open=(on|off)
p
--prompt-patterns-stdinp 
q
No Long Option Name
r
--replace-matches=(on|off|sim)
s
--match-count-all-files=(on|off)
t
--filecount=(on|off)
u * --uppercase=(on|off)
v
--invert-match=(on|off)
w

x * --record-end=(unix|os2|dos|apple)
y * --ignore-records=(on|off|hex)
z
--replace-matches=sim - see 'r' option


Long options with no short option alternative:

Long options which may be specified with each input file:
--line-buffered=(on|off) This option will flush the output buffer after each line write
--byte-offset=(on|off|hex) Output byte count to beginning of record. The byte offset is suffixed with 'o' to indicate Offset. For context lines the 'o' is followed by a hyphen, '-', and for match lines the 'o' is follwed by a colon, ':'. If 'hex' is specified, then the byte offset is output in hexadecimal and the 'o' is replaced with 'x'.
--ANSI-match-foreground= See the help panel on the configuration file for information on specifying the values for the Long Option
--ANSI-match-background= See the help panel on the configuration file for information on specifying the values for the Long Option
--ANSI-normal-foreground= See the help panel on the configuration file for information on specifying the values for the Long Option
--ANSI-normal-background= See the help panel on the configuration file for information on specifying the values for the Long Option
--ANSI-filename-foreground= See the help panel on the configuration file for information on specifying the values for the Long Option
--ANSI-filename-background= See the help panel on the configuration file for information on specifying the values for the Long Option
--ANSI-end-foreground= See the help panel on the configuration file for information on specifying the values for the Long Option
--ANSI-end-background= See the help panel on the configuration file for information on specifying the values for the Long Option

Long options which may be specified only before first input file:
--help Display the help screen
--label=NAME This option will use 'NAME' for the standard input filename.
--files-with-matches=(on|off)
This option will print the filename of files which have a pattern match. Scanning stops on first match. This option is incompatible with the following options: CVZckorz
--files-without-match=(on|off)
This option will print the filename of files which do not have a pattern match. Scanning stops on first match. This option is incompatible with the following options: CVZckorz

             

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