[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: New package -rcd- "recursively cd" on SSC

From   Dan Blanchette <>
Subject   st: New package -rcd- "recursively cd" on SSC
Date   Wed, 8 Apr 2009 10:58:24 -0400 (EDT)

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 <>
Dan Blanchette <>

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

*   For searches and help try:

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