Page 2 of 2
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Jul 31, 2015 12:11 pm
by Rick Lipkin
Robb, Carlos Paco
Robb .. I downloaded your Ts.exe ( remake ) and it looks very promising .. I did notice from time to time it fails to list the filename it is scanning and the line, otherwise a worthy replacement.
Carlos .. thank you for your suggestion .. evaluating your choice as we speak
Paco .. I appreaciate you sharing your program... going to compile it this morning.
Thank you all very much !
Rick Lipkin
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Jul 31, 2015 1:26 pm
by santy
Rick try snr utility from Alex Kresin
http://kresin.ru/en/snr.htmlor GUI version of this utility Fileagent
http://kresin.ru/en/fileagent.html
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Jul 31, 2015 2:02 pm
by solving
windows grep ?
[url]
http://www.wingrep.com/[/url]
saluti
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Jul 31, 2015 4:54 pm
by Jeff Barnes
Hi Rick,
This one isn't dos based but it might do what you need.
http://www.phisearch.net/
Re: OT: TS.exe ( text find ) utility replacement
Posted: Mon Aug 03, 2015 2:38 am
by hua
I use grep. It comes with BCC
Re: OT: TS.exe ( text find ) utility replacement
Posted: Mon Aug 03, 2015 9:50 am
by Antonio Linares
Total Commander built in search feature
I always use Total Commander as my file manager
Re: OT: TS.exe ( text find ) utility replacement
Posted: Thu Aug 06, 2015 6:55 am
by Carlos Mora
hua wrote:I use grep. It comes with BCC
+1.
If you are using BCC, grep is a good option. And it is also available in Unix type OSs, like Linux and OSX.
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Aug 07, 2015 4:21 pm
by James Bott
Rick,
I was not aware of the FINDSTR DOS command until someone posted it in this thread. I have been trying it out and it looks like it may be very close to your old TS.EXE.
I posted some examples of using it to search source code below. I have all that code in a batch file which exports the results into several TXT files.
James
------------------------------------------
The DOS program Findstr is great at locating strings in your source code. Here are some examples.
rem Find all occurrences in all source files in current directory
rem and ignore case and include line numbers
findstr /n/i/C:"index on" *.prg >indexon.txt
findstr /n/i/C:"set index to" *.prg >setindex.txt
findstr /n/i/c:":addindex" *.prg >addindex.txt
findstr /n/i/c:"=Tdata():new(,\"clients\"" *.prg >clients.txt
In the last example note that we are looking for a string containing quotes so we have to use the "escape" character, the backslash \, right before the quote marks we want in the search string. So we are actually searching for:
=TData():new(,"clients"
See this link for more info on escape syntax:
http://ss64.com/nt/findstr-escapes.html
Re: OT: TS.exe ( text find ) utility replacement
Posted: Thu Mar 31, 2016 8:47 pm
by cuatecatl82
Greetings all:
I have reviewed the code because I needed for a project and I have made some based on the original code changes, hope I can serve them ..
http://www.mediafire.com/download/danbo17b2a82fvg/Busqueda.rarMany Tanks Paco Garcia...
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Apr 01, 2016 1:50 am
by cuatecatl82
http://www.mediafire.com/download/g2eisds6lcq5f1e/FileSearch.rarNew revision , corrected the error by double clicking on the search line , showed the data to locate the result.
In my case in my Editor by double clicking on the highlighted line opens the file oEditor:Abrir(cFile) and positioned the row indicated oEditor:GoTo(nLine)
Greetings..