Page 1 of 1

Replace text for all files in a tree ?

Posted: Sun May 05, 2002 7:05 am
by Jean-Pierre Dumas
How can I do a search and replace (litteral or regexp) for all files
(That can mean a lot) in a disk or directory tree.
(c.f. NoteTab Pro)

TIA

Jean-Pierre

Re: Replace text for all files in a tree ?

Posted: Sun May 05, 2002 7:57 am
by ozymandias
wingrep www.hurricanesoft.com.

You can even link wingrep to textpad to make it the default editor.

Re: Replace text for all files in a tree ?

Posted: Mon May 06, 2002 10:15 am
by Andreas
In Textpad:
Close all files if any are open.
If the Search Result window is open, go to it, right click and select "Clear all"
Find / Find in Files
Put your search string/pattern in there and set all the options as necessary (e.g. subfolders).
Do the search.
All files containing the pattern will be in the search result list
Right-click in the list, select "Open all"
Now go to search/Replace, put in the boxes whatever you want to replace.
Make sure "All Documents" is selected in the "Scope" box.
After "Replace All", you can save all the files by using File / Save all.

Re: Replace text for all files in a tree ?

Posted: Wed May 08, 2002 6:49 am
by Andreas
Jean Pierre wrote in a mail to me:
<cite>
Whao!

Just have to do a macro ...

I did not think it was possible that way.
A bit heavy may be, but if it works...

Thank you.

jp
</cite>

Just a warning: Find in Files is not available in Macros...