playstat
asked on
search and replace with html files
hi there
I am looking for away of searching from a list of urls and replacing them with a second batch of urls within a collection of html files around 75 html files.(same folder)
Example
so all line by line domains that in the first text file are searched for and replaced by the second line by line domains
first text file could have this
www.domain1.com/?=111
www.domain2.net/?=3435
www.domain3.com/?=1411
www.domain4.net/?=3445
www.domain5.com/?=43111
www.domain6.net/?=23345
etc etc
there are about 50 urls all within the html files in the first textfile so perfect matches through out.
Then i need to replace those urls within the html with the second text file (line by line)
www.domain1.com/?=5435
www.domain2.net/?=347835
www.domain3.com/?=16411
www.domain5.com/?=4356111
www.domain6.net/?=233745
both files are different in the amount of urls the only thing that is identical are the domain names up until the http://www.domain.whatever/ after that the seconf text file has a different ?=XXXX
Then output the master files into another folder
I dont think this is as stright forward as text to text then master text file
best regards
I am looking for away of searching from a list of urls and replacing them with a second batch of urls within a collection of html files around 75 html files.(same folder)
Example
so all line by line domains that in the first text file are searched for and replaced by the second line by line domains
first text file could have this
www.domain1.com/?=111
www.domain2.net/?=3435
www.domain3.com/?=1411
www.domain4.net/?=3445
www.domain5.com/?=43111
www.domain6.net/?=23345
etc etc
there are about 50 urls all within the html files in the first textfile so perfect matches through out.
Then i need to replace those urls within the html with the second text file (line by line)
www.domain1.com/?=5435
www.domain2.net/?=347835
www.domain3.com/?=16411
www.domain5.com/?=4356111
www.domain6.net/?=233745
both files are different in the amount of urls the only thing that is identical are the domain names up until the http://www.domain.whatever/ after that the seconf text file has a different ?=XXXX
Then output the master files into another folder
I dont think this is as stright forward as text to text then master text file
best regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.