Literally about 10 years ago, I'm pretty sure this list suggested a tool that I used to update several text files in a common folder; it was a big "replace text 123 with 456" kind of thing. But alas, my memory is failing me and I can't recall what the tool was called.
Anybody know of such a tool to handle large search/replace across several text files in a same folder or even perhaps cascading tree of folders?
tia, --Mike
I think this tool will do what you are looking to do:
http://findandreplace.sourceforge.net/
Paul H. Tarver Email: paul@tpcqpc.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Monday, October 29, 2018 4:18 PM To: profoxtech@leafe.com Subject: [NF] Tool for editing multiple files for huge search/replace operation
Literally about 10 years ago, I'm pretty sure this list suggested a tool that I used to update several text files in a common folder; it was a big "replace text 123 with 456" kind of thing. But alas, my memory is failing me and I can't recall what the tool was called.
Anybody know of such a tool to handle large search/replace across several text files in a same folder or even perhaps cascading tree of folders?
tia, --Mike
[excessive quoting removed by server]
GoFish has replace functionality. 😊
Pretty much any decent text editor will have a find and replace in files function. For example, I still use TextPad from Helios Software as my primary text editor and it does that sort of thing.
--
rk
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Monday, October 29, 2018 5:18 PM To: profoxtech@leafe.com Subject: [NF] Tool for editing multiple files for huge search/replace operation
Literally about 10 years ago, I'm pretty sure this list suggested a tool that I used to update several text files in a common folder; it was a big "replace text 123 with 456" kind of thing. But alas, my memory is failing me and I can't recall what the tool was called.
Anybody know of such a tool to handle large search/replace across several text files in a same folder or even perhaps cascading tree of folders?
tia, --Mike
On 2018-10-29 18:25, Richard Kaye wrote:
GoFish has replace functionality. 😊
Pretty much any decent text editor will have a find and replace in files function. For example, I still use TextPad from Helios Software as my primary text editor and it does that sort of thing.
...to manually change every instance of StringA to StringB across several hundred files all at once? I don't want to manually do that for each file!
Yes. Although I'd probably say sequentially as opposed to all at once. 😊
--
rk
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Tuesday, October 30, 2018 12:44 AM To: profoxtech@leafe.com Subject: Re: [NF] Tool for editing multiple files for huge search/replace operation
On 2018-10-29 18:25, Richard Kaye wrote:
GoFish has replace functionality. 😊
Pretty much any decent text editor will have a find and replace in files function. For example, I still use TextPad from Helios Software as my primary text editor and it does that sort of thing.
...to manually change every instance of StringA to StringB across several hundred files all at once? I don't want to manually do that for each file!
On Oct 29, 2018, at 11:44 PM, mbsoftwaresolutions@mbsoftwaresolutions.com wrote:
GoFish has replace functionality. 😊 Pretty much any decent text editor will have a find and replace in files function. For example, I still use TextPad from Helios Software as my primary text editor and it does that sort of thing.
...to manually change every instance of StringA to StringB across several hundred files all at once? I don't want to manually do that for each file!
Or you could just do this in Linux:
sed -i -e ’s/old_text/new_text/g' *.txt
;-)
-- Ed Leafe
NotePad++ allows you to do that easily. You can also use it to put in \r or \n in for easy reading in the editor.
Free as well.
On Mon, Oct 29, 2018 at 11:44 PM < mbsoftwaresolutions@mbsoftwaresolutions.com> wrote:
On 2018-10-29 18:25, Richard Kaye wrote:
GoFish has replace functionality. 😊
Pretty much any decent text editor will have a find and replace in files function. For example, I still use TextPad from Helios Software as my primary text editor and it does that sort of thing.
...to manually change every instance of StringA to StringB across several hundred files all at once? I don't want to manually do that for each file!
[excessive quoting removed by server]
Even the "Code References" tool from FoxPro lets you do a global search and replace over multiple files...
-----Ursprüngliche Nachricht----- Von: ProFox profox-bounces@leafe.com Im Auftrag von mbsoftwaresolutions@mbsoftwaresolutions.com Gesendet: Montag, 29. Oktober 2018 22:18 An: ProFox profox@leafe.com Betreff: [NF] Tool for editing multiple files for huge search/replace operation
Literally about 10 years ago, I'm pretty sure this list suggested a tool that I used to update several text files in a common folder; it was a big "replace text 123 with 456" kind of thing. But alas, my memory is failing me and I can't recall what the tool was called.
Anybody know of such a tool to handle large search/replace across several text files in a same folder or even perhaps cascading tree of folders?
tia, --Mike
[excessive quoting removed by server]
Yes it does.
I use the "Code References" tool from FoxPro a lot. I stopped using the global search and replace because it can destroy the files. There may be a way to make it work, but I manually go through the list of files now and it works well.
On 10/29/2018 2:50 PM, juergen@wondzinski.de wrote:
Even the "Code References" tool from FoxPro lets you do a global search and replace over multiple files...
-----Ursprüngliche Nachricht----- Von: ProFox profox-bounces@leafe.com Im Auftrag von mbsoftwaresolutions@mbsoftwaresolutions.com Gesendet: Montag, 29. Oktober 2018 22:18 An: ProFox profox@leafe.com Betreff: [NF] Tool for editing multiple files for huge search/replace operation
Literally about 10 years ago, I'm pretty sure this list suggested a tool that I used to update several text files in a common folder; it was a big "replace text 123 with 456" kind of thing. But alas, my memory is failing me and I can't recall what the tool was called.
Anybody know of such a tool to handle large search/replace across several text files in a same folder or even perhaps cascading tree of folders?
tia, --Mike
[excessive quoting removed by server]
On 2018-10-29 20:27, Ken McGinnis wrote:
Yes it does.
I use the "Code References" tool from FoxPro a lot. I stopped using the global search and replace because it can destroy the files. There may be a way to make it work, but I manually go through the list of files now and it works well.
I had the same experience as you years ago, Ken, with it screwing up files. Never trusted the global replace after that.
And, BTW, that's just a 3Liner in VFP:
FOR i = 1 TO ADIR(aFiles, "*.txt") STRTOFILE(STRTRAN(FILETOSTR(aFiles(i,1)), "OldText", "NewText"), aFiles(i,1)) ENDFOR
Or, maybe for easier disassembly:
FOR i = 1 TO ADIR(aFiles, "*.txt") cFile = aFiles(i,1) ? cFile cContent = FILETOSTR(cFile) cContent = STRTRAN(cContent, "OldText", "NewText", <Several Options here>) STRTOFILE(cContent, cFile) ENDFOR
wOOdy
"*´¨) ¸.·´¸.·*´¨) ¸.·*¨) (¸.·´. (¸.·` * .·`.Visual FoxPro: It's magic ! (¸.·``··*
You can use Notepad++ on TX2 files, then generate de binaries with FoxBin2Prg. I used it many times :D
El lun., 29 oct. 2018 a las 22:17, < mbsoftwaresolutions@mbsoftwaresolutions.com> escribió:
Literally about 10 years ago, I'm pretty sure this list suggested a tool that I used to update several text files in a common folder; it was a big "replace text 123 with 456" kind of thing. But alas, my memory is failing me and I can't recall what the tool was called.
Anybody know of such a tool to handle large search/replace across several text files in a same folder or even perhaps cascading tree of folders?
tia, --Mike
[excessive quoting removed by server]
By the way, Notepad++ have a search & replace function that works on all files of a given mask in subdirectories, so no manual replacement in each file is needed.
El mar., 30 oct. 2018 0:30, Fernando D. Bozzo fdbozzo@gmail.com escribió:
You can use Notepad++ on TX2 files, then generate de binaries with FoxBin2Prg. I used it many times :D
El lun., 29 oct. 2018 a las 22:17, < mbsoftwaresolutions@mbsoftwaresolutions.com> escribió:
Literally about 10 years ago, I'm pretty sure this list suggested a tool that I used to update several text files in a common folder; it was a big "replace text 123 with 456" kind of thing. But alas, my memory is failing me and I can't recall what the tool was called.
Anybody know of such a tool to handle large search/replace across several text files in a same folder or even perhaps cascading tree of folders?
tia, --Mike
[excessive quoting removed by server]
I use Windows Grep.
Developer -- after 25 years -- no longer supports:
Huw Millington huw@brickset.com https://www.google.co.il/search?q=Huw+Millington&rlz=1C1EJFA_enIL797IL79...
Link to Version 2.3
https://download.cnet.com/Windows-Grep/3000-2351_4-75805915.html
I can share my later version 2.5.4 which I run on WIN 10 64 bit.
*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP* *Aliyah https://en.wikipedia.org/wiki/Aliyah: Cincinnati to Jerusalem http://www.gojerusalem.com/items/263/German-Colony/'s German Colony https://en.wikipedia.org/wiki/German_Colony,_Jerusalem May, 2017*
*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical CenterWebSite: **EnzerMD.com http://EnzerMD.com* *Publications* http://www.enzermd.com/CV.html#Publications
*If a problem has no solution, * *it may not be a problem, * *but a fact -- not to be solved, * *but to be coped with over time*
-- Shimon Peres, Ninth President of Israel
On Mon, Oct 29, 2018 at 11:17 PM < mbsoftwaresolutions@mbsoftwaresolutions.com> wrote:
Literally about 10 years ago, I'm pretty sure this list suggested a tool that I used to update several text files in a common folder; it was a big "replace text 123 with 456" kind of thing. But alas, my memory is failing me and I can't recall what the tool was called.
Anybody know of such a tool to handle large search/replace across several text files in a same folder or even perhaps cascading tree of folders?
tia, --Mike
[excessive quoting removed by server]