dynamic find & replace
Posted: Mon Mar 28, 2005 10:00 pm
I have multiple .html files with this link in it:
http://www.mysite.com/<myText>/present.html
I also have a text file with a list of names.
What I want to do is replace <myText> in each document, but I want it to increment through the list of names so that my files each have a different link when done.
So if my text file looked like:
george
phill
greg,
george.htm would have the link:
http://www.mysite.com/george/present.html
while phill.htm would have:
http://www.mysite.com/phill/present.html
and greg.htm would have:
http://www.mysite.com/greg/present.html
please please help, I cant bear the thought of doing this manually over hundreds of files.
http://www.mysite.com/<myText>/present.html
I also have a text file with a list of names.
What I want to do is replace <myText> in each document, but I want it to increment through the list of names so that my files each have a different link when done.
So if my text file looked like:
george
phill
greg,
george.htm would have the link:
http://www.mysite.com/george/present.html
while phill.htm would have:
http://www.mysite.com/phill/present.html
and greg.htm would have:
http://www.mysite.com/greg/present.html
please please help, I cant bear the thought of doing this manually over hundreds of files.