Dear Statalist Members,
Thanks to Kit Baum, a new package -rcd-
is now available for download on SSC.
-rcd- came about from a collaboration of:
Nikos Askitas <[email protected]>
and
Dan Blanchette <[email protected]>
Description
rcd expects a directory name otherwise the current working directory is used.
rcd proceeds to recursively visit all subdirectories starting there. rcd will
display what directories it goes to in verbose mode, obey a maximum depth if
one is specified and it will optionally run a command in each directory if
desired. Which directories the submitted command are run in can be selected by
using the dirfilter() option.
rcd may be thought of as a recursor. A typical example of what you can do using
it is:
. rcd . : dir *.dta
which would result in visiting every subdirectory starting where you are wanting
to see the Stata datafiles in each one of them.
To check it out:
. ssc describe rcd
Let us know if you have any questions or suggestions.
Dan Blanchette
Research Associate
Center of Entrepreneurship and Innovation
Duke University's Fuqua School of Business
[email protected]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/