now i have got wget to download all the html files from the domain and replaced the www.example.com with our intranet url, but for the images... all the paths to the images still point to img1.example.com
now we want to replace img1.example.com to the url of the images on our intranet but i cant seem to do this with wget
so i need to run a script on all the html files (around 500 files) and replace the path of the images
for F in `find /home/sites/foodomain.com/ -type f -name '*.html' -print`; do mv $F $F.tmp ; sed 's/<title>Untitled Document<\/title>/<title> My New Site Title <\/title>/g' $F.tmp > $F ; rm $F.tmp ; done
Here is one I used in the past for changing the title in html pages. With a few tweaks and different search path used for 'find' it should do what your looking for.