FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour OT: TS.exe ( text find ) utility replacement
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Jul 31, 2015 12:11 PM

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

Posts: 9
Joined: Mon Jul 02, 2012 07:35 AM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Jul 31, 2015 01:26 PM
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
Posts: 65
Joined: Fri Jun 05, 2009 07:55 AM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Jul 31, 2015 02:02 PM
windows grep ?

http://www.wingrep.com/
" rel="noopener">
http://www.wingrep.com/


saluti
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Jul 31, 2015 04:54 PM
Hi Rick,

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

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Mon Aug 03, 2015 02:38 AM

I use grep. It comes with BCC

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Mon Aug 03, 2015 09:50 AM

Total Commander built in search feature

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 989
Joined: Thu Nov 24, 2005 03:01 PM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Thu Aug 06, 2015 06:55 AM
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"
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Aug 07, 2015 04:21 PM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 625
Joined: Wed Mar 14, 2007 06:49 PM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Thu Mar 31, 2016 08:47 PM
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.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
Posts: 625
Joined: Wed Mar 14, 2007 06:49 PM
Re: OT: TS.exe ( text find ) utility replacement
Posted: Fri Apr 01, 2016 01:50 AM
http://www.mediafire.com/download/g2eisds6lcq5f1e/FileSearch.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)



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

Continue the discussion