On Fri, Aug 22, 2014 at 1:34 AM, Lew Wolfgang <wolfgang@sweet-haven.com> wrote:
Hi Folks,
I've got a web site that's being "retired", so to speak, and will be replaced with a shiny new presentation. But I want to keep the old one on-line for 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?
Thanks in advance for any advice, Lew
The first thing I would do is see if some magnanimous soul had already done it for me. Just imaging a company that goes around making backups of all the websites they can and making them available to the website owners for free. Hard to believe, but someone is doing just that: http://web.archive.org/ In the case of foobar.com you can see all the backups that they have made at: http://web.archive.org/web/*/foobar.org So my question is if you need to bother at all with your effort. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org