View Single Post
Old 24th Aug 2019, 6:10 pm   #2
GeoffB17
Tetrode
 
Join Date: Feb 2016
Location: Guisborough, North Yorkshire, UK.
Posts: 80
Default Re: Word in file search utility, DOS

I never saw such a thing, as you describe it, but I wrote a somewhat limited version for my own use, which I still use.

This works on text files ONLY, in the current directory. It's looking for all 'hits' of a specified word. I use it mainly for following variables, keywords, etc in modules of source code. The prog defaults to *.c, but other things can be added to the command line like *.prg or *.txt, *.htm etc.

The result is put to a file, comprising a header for each filename, then line number and (part) of the full text of the line.

It's a DOS prog, so it's 8.3 filenames only. This has been causing me some trouble recently, so maybe I should change it?

Any help?

Geoff
GeoffB17 is offline