Text Editor to Automate Find & Replace Process

Hey guys,

Anybody know of a program / application (Mac supported) that can do a find and replace for multiple documents at once?

I often have to find and replace the same exact text in many documents, and find it inefficient to press CTRL + F then click “Replace”, then click the next document in the document drawer and repeat.

Any program that can execute a Find and Replace on a number of documents instead of just one at a time?

Thanks!

(I apologize if this is in the wrong section)

BBEdit is by far the best Mac text editor for the job. I’ve been using it for more years than I remember and its saved my bacon many times. It can find and replace open documents or search through folders. You can use GREP to do pattern searches (dd/mm/yyyy) and use Text Factories to find and replace again and again on the same set of docs. Ideal when converting spreadsheet data. It also includes syntax colouring for most popular programming languages and has a host of HTML goodies. Support is excellent as well.

notepad++ can open many docs at once. Although a blanket find and replace can get you in trouble very quickly. All it takes is a couple of places where the words are the same and those words did not need to be replaced…

It won’t help you in this case, but in the future, if you have content that appears on multiple pages, that content should be extracted to its own file and imported into the page via an include statement. This gives you a single point to maintain by following the DRY principle, don’t repeat yourself.

cheers,

gary

I actually started to do this when I learned about it. Thank you!

But what if you changed the name of that file? Then the text editor that changes multiple files would come in handy as you would need to change the name of the include file in all the other files. (Just a what if) :smiley:

I don’t know if you mean with application a text editor or any other editor, but Dreamweaver for example has the ability to make changes for an entire folder.