View Single Post
Old 07-25-2002, 05:04 PM  
kenny
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 7,245
Quote:
Originally posted by hyper

i'm changing everything over now to ssi
that way i wont have to do this shit again
guess i'll be busy for the next 3 days

I was just tryin to save you 3 days work, if you have 2000 html pages with their links you can use perl on the server to go through every page and switch text in all the pages at ounce.

find /home/htdocs/website -name '*.html' -exec perl -pi -e 's/[a href='http:\/\/ripoffsponsor.com?account=333']click here to check out my rip off sponsor[\/a]/[!--#include virtual='\/sponsor\/ssi.txt'--]/g' {} \;


so if you have 300 links that are the same you can swith them all at ounce, however I am just assuming that many of them are the exact same html.

s/whats in here on every html page on my domain/with this new html/g'

Last edited by kenny; 07-25-2002 at 05:11 PM..
kenny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote