How to edit html site with 400k pages (search replace)

living2xl

Elite Member
Joined
Dec 9, 2011
Messages
1,968
Reaction score
530
tried sublime text editor and hangs also tried dreamweaver and crashes too
https://findandreplace.codeplex.com/ this works but its slow as hell says its gonna take 4 hours to do one word replace and hey I have to do a shit load of replaces
 
400k pages? What kind of site is that haha. That's a heck of a lot of content. Unfortunately I have no idea what to suggest

Tell us more
 
its so big . curious to know answer.
 
Try this linux command:

for page in *.html; do sed -i "" "s/WORD TO REPLACE/WORD TO REPLACE WITH/g" page; done
 
I came here to tell you that you need to learn how to use "sed", but paulylo beat me to it.
 
Why don't you move the site to a CMS and then it is a breeze to do this using plugins & modules.
 
Back
Top