I am looking for an easy to use tool that will allow me to have batch of search/replace pairs. Rolling out to different environments requires us to search/replace server names in database scripts. I would like to create a list of search/replace pairs that I can run a file through to prepare it for an environment.

Any OS would be interesting, but my specific need is for Windows.

link|improve this question
feedback

4 Answers

For *nix, generally some sort of tool that support regular expressions would be used. Someone would probably use sed, awk, Perl, or Python. You might consider wingrep for windows.

link|improve this answer
feedback

FART.. Find And Replace Tool.

http://sourceforge.net/projects/fart-it/

It can be command line scripted if you need.

link|improve this answer
feedback

PowerGREP will do what you need. They include a 15-day trial, but it is for 15 days that you are actually using the product, so its quite a nice trial.

Once you start up the program there are two drop downs beside each other; 'Action Type' and 'Search Type'. Change Action Type to 'Search and replace'. Change 'Search Type' to 'List of Literal Text' or 'List of regular expressions'. You can add and remove Search/replacement Pairs.

http://www.powergrep.com/index.html alt text

link|improve this answer
feedback

GrepWin

alt text

link|improve this answer
I really want to use this tool, but you can't seem to batch execute bookmarks. I want to create a "bookmark group" (foo->bar, boo->baz, ist-> tsi) and be able to run all at once. – Mike Schall Sep 23 '09 at 1:54
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.