Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have around 60 php files that are generated by a code generator, and after each requirement modification the files need to be changed (replace text, file rename). Can you recommend a Windows tool that can save the changes I need to make and automatically do them each time the source files are changed?

share|improve this question
A simply python script might work for that...what are the exact requirements? – Bobby Aug 10 '10 at 9:22
The changes are usually text replacement for elements of code (layout, method calls) but there are many things that are done over and over again – Rox Aug 10 '10 at 9:45
up vote 0 down vote accepted

I suggest using sed.

It allows you to create change/substitution lists in a file, then run those changes against the files you are working on.

There is a small learning curve, but within 15/20 minutes you should be making progress.

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.