Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: searching for files in different subdirectories
From
Dan Blanchette <[email protected]>
To
[email protected]
Subject
Re: st: searching for files in different subdirectories
Date
Thu, 5 Jul 2012 17:54:22 -0400 (EDT)
Marcos,
I am a co-author of a command available from SSC
called -rcd- (recursively change directories).
It is a pre-fix command so you can run Stata commands
after it.
. ssc install rcd
Then this might do what you want:
. rcd C:\data\ , verbose : dir "*ab*.dta"
The verbose option will display what directory -rcd- is in
when it runs the dir command.
Hope this helps,
Dan Blanchette
Research Programming Services
Carolina Population Center
University of North Carolina
[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/