How To “Find And Replace” Words In Multiple Files



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”.
find and replace tool
find and replace files