I need to do a find and replace in all of my output HTM topic files, but it needs to find and replace in the source code. Can anyone recommend a free tool for this?
Back story. My master page somehow got a random "k" in the top left corner, so now every topic has that "k". Obviously I can't find and replace on just "k", so I need to grab some of the code around it to make sure I'm replacing this "k" only. For example: <body>k<script src="https://www.google.com/jsapi" type="text/javascript"></script>
I just built and copied 3GB of output files to the staging server, which takes 10+ hours to copy, and THEN noticed the offending "k". Re-building and re-starting that 10-hour copy is not desirable Really needed to push the files live today.
Best tool for find/replace in output HTM files?
Re: Best tool for find/replace in output HTM files?
Try getting a hold of a free version (there are pay-for versions as well) of Windows Grep.
-
- Propellus Maximus
- Posts: 1238
- Joined: Mon Feb 27, 2006 5:56 am
- Location: Melbourne, Australia
Re: Best tool for find/replace in output HTM files?
Notepad++ is free for windows and could do the job.
I also have a paid-for version of the FAR Help tool that can do just about anything with find/replace.
I also have a paid-for version of the FAR Help tool that can do just about anything with find/replace.
Margaret Hassall - Melbourne
Re: Best tool for find/replace in output HTM files?
Grep to the rescue! Thank you for saving me the time of searching for and trying out different tools to find the one that worked. I'll take a look at Notepad + + too but grep was the first one I tried and worked exactly as expected. So rare these days!
And lesson learned. Never smoke test a big project on a Friday. It's amazing the things you see on Monday morning that were "invisible" on Friday afternoon.
And lesson learned. Never smoke test a big project on a Friday. It's amazing the things you see on Monday morning that were "invisible" on Friday afternoon.