How To “Find And Replace” Words In Multiple Files

Ads by Google

find-and-replace-textI have been using Notepad ++ for years as my Windows Notepad replacement.

It does highlighting and line numbers, these were my first reasons for using it. Notepad ++ has been my best friend for writing scripts and HTML files.

Now I had a new challenge and my buddy Mike told me that Notepad ++ would be my easiest and FREE solution.

Here was my dilemma – I had 8,342 HTML files and I needed to replace some text on every single page to reflect a company’s identity tweaking. The company was mostly adult-oriented before and now they are trying their hand at mainstream. They needed to remove the word ADULT from their company name every where throughout their site. Now your friendly neighborhood admin was not going to be doing this manually – that was for sure. So I fired up Notepad ++ and searched for this magic option.

Sure enough there it was on the search menu – the option that was going to make my life easier – “Find In Files”.

Using this awesome feature I am able to have Notepad++ find all files with the word I choose in them. It then shows me the results of my search. Once I click on all the instances I want to change, it will open those files. I can then do my “replace on all open files”.

Ads by Google

find and replace tool

find and replace files

After you find all your instances and have all the files open in Notepad ++ you can then click over to the replace tab – now you will see a option to replace throughout ALL OPENED FILES! Sweet!

I am guessing that some of you out there have never heard of or used Notepad ++ before. So let me run down the basic features with you. If you are a scripter, coder or any type of programing monkey this program will make you salivate!

Check it out, Notepad ++ has:

  • Syntax Highlighting and Syntax Folding
  • User Defined Syntax Highlighting
  • Auto-completion
  • Regular Expression Search/Replace supported
  • Full Drag “˜N’ Drop supported
  • Multi-Language environment supported
  • Brace and Indent guideline Highlighting
  • Macro recording and playback
  • Bookmarks

Do you have another way to find and replace throughout a slew of files? After completing this task I was told about another free application that might have made my life even easier… It is called BkReplaceEm and stay tuned for my review!

Join live MakeUseOf Groups on Grouvi App Join live Groups on Grouvi
648 Members
Windows Tips
Windows Tips
606 Members
Windows Troubleshooting
Windows Troubleshooting
556 Members
Best Windows Software
Best Windows Software
544 Members
Computer Hardware Talk
Computer Hardware Talk
491 Members
Affiliate Disclamer

This article may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.
New comment

Please login to avoid entering captcha

Log In