home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
m
/
mastlkt.zip
/
DOCS.EXE
/
pak
/
FSRCH.DOC
< prev
next >
Wrap
Text File
|
1988-01-02
|
5KB
|
116 lines
R
FSRCH - FILE SEARCH UTILITY
Copyright (c) 1988, Stan Leeson
All Rights Reserved
FSRCH is a text file search utility that allows you to search through a
collection of files for lines that contain a target string or for lines
that relate to a pair of target strings in a prescribed manner. It
provides you with a simple but powerful user interface to aid you in
locating text items quickly and easily.
Programmers often work with programs made up of a collection of source
language files. When the applications are large and complex, it is often
easy to misplace the definition of a variable, the source of a function,
calls to a given subroutine, etc. FSRCH can help you locate these items
quickly. Other users may want to find a given text string in a set of
ASCII documentation files. Again, FSRCH can easily do that for you.
FSRC is called from the command line with no parameters or with an optional
output file specification parameter. The two forms of the call are:
FSRCH or FSRCH outfile_spec
where "outfile_spec" is the file specification where the listing of the
files that were search and the matching lines that were found should be
written. If the output file specification parameter is omitted, the list
is written to "FSRCH.OUT" in the current default directory.
Once FSRCH begins execution, it presents a form with 6 fields on the screen.
This form is used to control the type of search that is performed. Context
sensitive help can be obtained by highlighting the field of interest with
the cursor arrow keys on the numeric keypad and pressing the F1 key. You
may fill in the fields in order pressing ENTER or TAB to move from one field
to the next, or you may use the cursor arrow keys to move the highlighting
and fill in the fields in any order that you like. Once you have completely
specified the search that you would like performed, you indicate that the
parameters are complete by holding down the Control key (Ctrl) and pressing
he enter key. The individual fields are desrcribed below:
FIELD 1 - FILE PATTERN
The file pattern is used to indicate which files are to be
searched. It may contain a drive specification, a directory
specification, and a file naming pattern with wild card
characters. A typical pattern would be in the form:
\"*.C\" to indicate all files with a .C extension. A
full pattern could be \"B:\\DIREC\\MY*.XY*\" to indicate
all files in directory \\DIREC on drive B: with a name
that begins with MY and an extension that begins with
XY are to be searched.
FIELD 2 - OBJECT 1
The object strings are those items that are to be searched
for. The first object string is required and the second is
optional. If the second string is empty, the relationship
is ignored, and FSRCH simply searches for occurrences of the
first string. If both strings are specified, FSRCH finds text
lines with the proper relationship of the two strings."};
FIELD 3 - RELATION
This field tells how the two object strings are
related in text lines that are reported. Choices:
AND - Both object strings must appear
OR - Either object string must appear
NOT - The first string must appear and NOT the second
XOR - Either string may appear but not both
SOLO - Only the first is searched for
The relationships may be abbreviated to just the initial character.
If the relationship is omitted, it is assumed to be SOLO if the
second object string is NULL and AND if it is not.
FIELD 4 - OBJECT 2
The object strings are those items that are to be searched
for. The first object string is required and the second is
optional. If the second string is empty, the relationship
is ignored, and FSRCH simply searches for occurrences of the
first string. If both strings are specified, FSRCH finds text
lines with the proper relationship of the two strings."};
FIELD 5 - CASE SENSITIVE
This field should be filled with a Y or N to indicate whether
or not the search should be case sensitive. If this field is left
blank or set to N, upper case and lower case letters are considered
to be equivalent.
FIELD 6 - PAUSE
This field is set to Y or N to indicate whether FSRCH should
pause after each match that is found. If pause is selected, FSRCH
stops after each matching line and waits for you to press a key
before continuing.
As each search is down, the results are written to the indicated output
file and displayed on the screen. Optionally, FSRCH will pause after
each match and wait for you to confirm that it is to proceed. When the
search is complete, FSRCH will ask if you want to perform additional
searches or terminate. If you choose to change parameters and search
again, FSRCH displays the parameters used in the last search and allows
you to change any that might require change. Results of subsequent
searches are appended onto the output file produced by the intial search.
FSRCH is a "Shareware" product and may be copied and
distributed for trial use so long at it is not changed
in any way. If you find it useful please send $5.00 to:
Stan Leeson, 1111 Edgewater, Arden Hills, MN 55112