
On Fri, Aug 22, 2014 at 12:07 PM, Carlos E. R. <carlos.e.r@opensuse.org> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thursday, 2014-08-21 at 22:34 -0700, Lew Wolfgang wrote:
historical reference at a different domainname. For example, the domain hosting the new content would be foobar.org, the one I want to keep for history would be foobar.info. So I need to go through the old html and substitute any references of foobar.org to foobar.info. There are 3705 separate lines in probably 1000 files in a large filesystem hierarchy containing the string that needs swapping. I'd rather not do it by hand!
What would you use? awk? A shell script? Something using grep and sed?
wget. It can do a mirror of a site, sanitizing the old domain for the new, I think. At least when creating a local mirror to a directory. I used this years ago, I don't remember the details.
I don't know if wget can do that or not. httrack is in the 13.1 distro and it is designed to make local copies of remote websites. One use case is offline reading of a website. I admit to not have done enough testing of httrack, but I've pulled a basic website down with it IIRC. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org