Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.

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. alt text

share|improve this answer

Your Answer


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.