Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

3 Answers 3

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.

share|improve this answer

FART.. Find And Replace Tool.

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

It can be command line scripted if you need.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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