I'm trying to change adsense channels on one of my larger sites and I've got a little problem, I don't want to have to do this manually. Is there a way, via a tool or script I can use, to find and replace HTML code on hundreds of pages at once?
If the files are on your local machine, you can use Dreamweaver or Textpad to do it. If they're on your web server, you could write a custom script and run it via SSH.
I have them on my PC. So you guys are saying that there is a feature in DM that will comb through a bunch of HTML files, at once and find and replace code?
Yeah, Dreamweaver has a very good find and replace function. You can download a free 30 day trial from Macromedia. Then you have to set up your site when you run the program, but you might need to check the help files on how to do that. It's a little tricky at first, but it's well worth the time taken to learn.
I used to just use BK Replace'em. Works pretty well and it's free. http://www.freewarefiles.com/programs.php?categoryid=9&subcategoryid=103&ProgramID=262
Dreamweaver and Frontpage have this capability. UltraEdit does as well. If you dont have either, NVU probably has this feature as well since it is quite convenient at times
I would recommend you Dreamwaver if you have a simply html or php site if you have dynamic then script would be better!
You guys are awesome, thanks! I own a copy of DM and use it to edit my sites. Where is the command that does a find and replace for entire site or what is it called? BTW this is a straight HTML site not a blog.
Tip: Make sure you are only replacing what you want to replace. I used this one time on a site and completely screwed it up! Right when google was starting to find it. Wow, post 100.
I personally don't use Dreamweaver myself, but whenever I need to do a mass find & replace across many files I just use a tool called PowerGREP. Seems to work well and supports regular expressions too. It's made by the same people who make EditPad.