Incode Systems Home Page Incode Systems, Inc.


FINDGRAM



(10-08-1992 9:04am FINDGRAM.EXE)
FINDGRAM

Usage: [options] "Search_String"/SrchFile [FileToSearch] [OutputFile]
If FileToSearch and/or OutputFile is given they override StdIn and StdOut.
If OutputFile is given, and it exists, Output is appended

Options:
-A = "And" is used (instead of or) for multiple search
(all strings must be found in Gram)
-C = Return count of Grams found (only)
-F = Return file name (only) where Gram is found
-D = Search subdirectories
-I = Ignore upper/lower case distinctions
-Ln = Length of KEY (ex: /L5)
-Nn = Return the Nth Gram found (only)
-N = Return the line number
-V = Return Grams that DO NOT match
-+n = Starting position (column) of KEY (ex: /+25)

Parameter specified single search string when double (")
or single "'" quoted.
If not quoted, assumed to be a file, containing one or
more search strings to be checked.
Grams in the StdIn are considered to be separated by
"." If any one of the search strings is found
in the Gram, the entire Gram is sent to the StdOut.

Maximum Gram length is 256 lines. Gram break is
inserted after 256 lines, if not encountered.

Maximum line length is 255.