homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

How to change the content of 5000 .html pages?
h e e e e l p :-(((((

 6:03 am on Jul 23, 2006 (gmt 0)

my site have 5000 URLs (at least).
all pages end with *****.html , they are not php or shtml.
now i have problem because of my 5000 pages.

i run ads in my site, and ad codes are in every single page, now i switching to another ads network, so i need to remove all old codes and insert the new codes in every single page.

so its a hard job to insert the codes in every page, but this is not the problem now, my problem is what i can do now can help me and make my job much easier in the feature if i want to change the codes again.

i will appreciate any help :-)



 6:35 am on Jul 23, 2006 (gmt 0)

If the old code are all the same in different pages.

Just use a tool to find and replace
for all your files.
Since there are 5000 html pages,
I think you may need to replace them use command console.
As far as I know, in Linux, you can use some command with regular expression to do the work pretty quickly.
I suppose it will apply to DOS as well.

Do a search on "regular expression find replace"

That is all I know.
Good luck.


 7:46 pm on Jul 23, 2006 (gmt 0)

If you search this board for "search and replace" you will find lots of solutions. Mine would be to use Homesite's search and replace method and re-upload the files, OR write a small perl script to do the work for me directly on the site.


 10:59 pm on Jul 23, 2006 (gmt 0)

While you're doing find+replaces it might be worth seeing if there are any places you could change to included sections - that'd make things a lot simpler in the future if you have to do this again.


 11:04 pm on Jul 23, 2006 (gmt 0)

Try WildEdit if you are going to do it on a local PC and upload to your server. It's very handy for such instances (although I've moved away from such techniques).

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved