Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: maintaining the user site


From   Christopher F Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: maintaining the user site
Date   Fri, 18 Oct 2002 07:58:38 -0400

--On Friday, October 18, 2002 2:33 -0400 Roger wrote:

The specific application that got me thinking along these lines was
website  maintenance. In my website (under construction at
http://www.kcl-phs.org.uk/rogernewson/   ), I have multiple .htm files,
.toc files,  .pkg files, .zip files, .ado files and .do files. When I add
packages to my website, I run a Stata program that reads all the .pkg
files, collects the title line in each one, and generates lists of
packages  in the .toc files and in tables in the .htm files. A package
such as  - -intext- would make it easier to add further bells and
whistles. However,  there are probably many other file-bashing
applications where this approach  would be less bother, and more
reliable, than a mixture of manual text  editing and DOS scripts.
One word of advice: perl.

It works for me (and since Alan Riley's improvement of one of the key scripts, it works even better now!)

Trivially simple to handle the files in a directory and generate the sort of thing you describe in perl. (Yes, probably can do it in python, too...)

Kit

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index