Quote:for files but i am editing it to include data and i will need help
as it can only search any file which can be opened by a text etidor
if you could give me a hand i would apreceat it
I wrote my own utility programs for searching files and for searching for text within files.
Why did I write these? Well at the time, about 12 years ago) the best utilities for these searches were part of Norton Utilities. I used Norton a lot, and found that there were a bunch of things that I wanted to do that Norton did not have. So, I wrote my own utilities.
Today, DIR is just about as good a file searcher as the Norton FS program was. If your file search program does not do at least what DIR does, and at least some additional feature that you often need, than I suggest that you're wasting your time.
Pretty much the same holds true for text searching. Norton's TS would search any file, binary or text. Again, if your program is not going to better than Norton's, or mine, then why bother, since it's a lot of hard work. When I wrote my enhanced version, I decided to write one for any file (!TS), and one for text only (!TSA).
Here's the "readme" description on these utilities:
Code:
!TS - Text Search on multiple files and subdirectories,
with ignore file(s), summary mode, and case sensitive options,
and skip-to-next-file facility.
- When matching text found in a file::
1) Press V for ViewFile to route the file to !LOOK.EXE for viewing.
2) Press E for EditFile to route the file to DOS Edit by default,
or create !TSEDIT.BAT to go to an editor of your choice.
- Text may also be specified as ASCII characters in decimal or
hexadecimal notation.
- Records containing matching text can be extracted to a file.
Each extracted record can also contain filename of origin.
- Notes:
* Running !TS from a batch file is not supported.
* If a particular search string is not working properly,
enclose it in quotes; it may conflict with option switches.
- Run program without any parameters for complete description.
!TSA - Text Search intended for ASCII files, based on the !TS utility,
with the following additional features:
* A search area within the records can be defined with the
/FROM= and /TO= commandline parameters.
The specified searchtext will only be searched for in this area.
If /TO= is not specified, area begins at /FROM= until end
of each record.
* Records NOT matching the searchtext can now be extracted to
a file by using the /REMOVE option.
* Enables using \\ as variable length wildcards in search texts.
* /MFILE=filename option enables multiple search texts to be
used by including them on separate lines of user specified file.
However, the \\ wildcards are not supported on these multiple
search texts. A logical "and" can be specified on /MFILE search
texts by including 2 or 3 search texts on the same line
separated by a $AND$ operand.
* /LINE option will preceed extracted lines with the line number
of the occurrence, and will also left-justify extracted lines.
- This utility can now be invoked from a batchfile, unless
you use the /CS option for case sensitive search text.
- This utility was particularly useful for searching source programs
for Y2K related problems.
- Run program without any parameters for complete description.
*****