Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a search and replace tool that takes a list of rules and either a file (or directory) and runs those rules on the files. I have a bunch of different things that need to be changed in many files, and I'd like to be able to run all the rules in one shot.

I was hoping I could put the rules separate file, and use the same set of rules over and over again.

Does such a tool exist?

share|improve this question

3 Answers 3

This tool does much more than what you're looking of, but can easily handle multiple rules:

http://www.parse-o-matic.com/parseomaticfree.aspx

share|improve this answer
    
does something like this exist that is free or OSS? It's not for personal use. :\ –  Joe Mar 12 '10 at 22:52
up vote 2 down vote accepted

I found out I was looking for sed. Using that with the -f option should do most of what I want.

www.sedtutorial.com is a good place to get started with the sed command.

share|improve this answer

Wheater you want to add some simple rules, save them for later or add regexp multiline replacements BK ReplaceEm is for you ;-). But seriously. If you just want to quickly run some simple, specific modifications then this will probably not be the best of tools. But if you want to save the rules and not wonder every time how to do some conversion then this will work. I also like it because you can (but don't have to) save a folder and a file mask for which you will run replacements. You can also move the set of folders between replacement groups and run replacements in certain order.

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.