OT: TS.exe ( text find ) utility replacement

User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: OT: TS.exe ( text find ) utility replacement

Post 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
User avatar
santy
Posts: 9
Joined: Mon Jul 02, 2012 7:35 am
Location: Ukraine, Lviv
Contact:

Re: OT: TS.exe ( text find ) utility replacement

Post by santy »

Rick try snr utility from Alex Kresin

http://kresin.ru/en/snr.html

or GUI version of this utility Fileagent

http://kresin.ru/en/fileagent.html
xHarbour 1.2.x , Harbour 3.x + Mingw 4.x, BCC 5.82
https://bitbucket.org/aantypenko
https://github.com/aantypenko
solving
Posts: 56
Joined: Fri Jun 05, 2009 7:55 am
Location: Sicily ( ct ) - Italy

Re: OT: TS.exe ( text find ) utility replacement

Post by solving »

windows grep ?


http://www.wingrep.com/


saluti
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Re: OT: TS.exe ( text find ) utility replacement

Post by Jeff Barnes »

Hi Rick,

This one isn't dos based but it might do what you need.
http://www.phisearch.net/

Image
Thanks,
Jeff Barnes

(FWH 12.01, xHarbour 1.2.1, Bcc582)
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: OT: TS.exe ( text find ) utility replacement

Post by hua »

I use grep. It comes with BCC
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: OT: TS.exe ( text find ) utility replacement

Post by Antonio Linares »

Total Commander built in search feature

I always use Total Commander as my file manager :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Carlos Mora
Posts: 988
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Re: OT: TS.exe ( text find ) utility replacement

Post 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.
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: OT: TS.exe ( text find ) utility replacement

Post 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
User avatar
cuatecatl82
Posts: 614
Joined: Wed Mar 14, 2007 6:49 pm
Location: San Cristobal de las Casas, Chiapas México
Contact:

Re: OT: TS.exe ( text find ) utility replacement

Post 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 ..

Image
Image

http://www.mediafire.com/download/danbo ... squeda.rar

Many Tanks Paco Garcia...
Soluciones y Diseño de Software
Damos Soluciones...

I.S.C. Victor Daniel Cuatecatl Leon
Director y Diseñador de Proyectos

http://www.soldisoft.unlugar.com
http://www.sisa.unlugar.com
danyleon82@hotmail.com
www.facebook.com/victordaniel.cuatecatlleon
User avatar
cuatecatl82
Posts: 614
Joined: Wed Mar 14, 2007 6:49 pm
Location: San Cristobal de las Casas, Chiapas México
Contact:

Re: OT: TS.exe ( text find ) utility replacement

Post by cuatecatl82 »

http://www.mediafire.com/download/g2eis ... Search.rar

New 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)

Image

Greetings..
Soluciones y Diseño de Software
Damos Soluciones...

I.S.C. Victor Daniel Cuatecatl Leon
Director y Diseñador de Proyectos

http://www.soldisoft.unlugar.com
http://www.sisa.unlugar.com
danyleon82@hotmail.com
www.facebook.com/victordaniel.cuatecatlleon
Post Reply