Re: Domain Name Change and Perl Programmer Needed [message #74961] |
Thu, 10 February 2011 11:46 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
FĂ–LDY Lajos writes:
> ps: do a backup before running the it, please :-)
Yeah, I thought maybe I would. In fact, I just found
a couple of places where it probably *shouldn't* be
changed. :-(
Thanks for this. I don't generally work in LINUX,
but I may have to get used to it to write that IDL 8
book Teddy has advanced ordered. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Domain Name Change and Perl Programmer Needed [message #74962 is a reply to message #74961] |
Thu, 10 February 2011 11:41  |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
On Thu, 10 Feb 2011, David Fanning wrote:
> Folks,
>
> To coincide with the imminent (I promise!) release of
> this new book, I have changed domain names from
> www.dfanning.com to www.idlcoyote.com. Some of you
> (probably not the ones who didn't know what "FSC_"
> stood for) may have noticed, as there has been some
> redirection going on for a week or so.
>
> The final move should be today. (It may have already
> happened.) This shouldn't affect anyone, as the
> redirect should happen automatically and should be
> painless. (Have you heard this story before?) But,
> I would encourage you, if you have the time, to fix
> your links, etc.
>
> There are some updates to the web site planned.
> Nothing major, and mostly having to do with an updated
> shopping cart for the store, which has been a nightmare
> of its own that I won't go into. In any case, it is not
> ready yet, but the old store is still working, I believe.
> I guess we are about to find out. :-)
>
> One of the things I could use, if someone wanted to
> volunteer some Perl programming time, is a script that
> would rip through my *.html files and change all instances
> of "dfanning.com" to "idlcoyote.com". I guess I could
> figure this out myself, but it is pretty far down on my
> list and I though someone here might like to feel
> *extremely* appreciated!
>
> Cheers,
>
> David
>
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
A single line bash script will do the job if you are on Linux/Unix:
for f in `find wwwdocs -name '*.html'`; do echo Fixing $f ...; sed
's/dfanning\.com/idlcoyote.com/g' <$f >$f.tmp; mv $f.tmp $f; done
(replace wwwdocs with the head of your dir. hierarchy).
regards,
Lajos
ps: do a backup before running the it, please :-)
|
|
|