Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: searching for files in different subdirectories


From   Marcos Delprato <m.a.delprato@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: searching for files in different subdirectories
Date   Thu, 5 Jul 2012 22:23:59 +0200

hello statlister:
a basic question. i need to obtain the datafiles with a particular
letter (*ab*.dta). I use the macro definition for file paths and file
local list : dir . files "*ab*" but it only search in the current
directory. i need to search in different sub and subdirectories of the
form dir/subdir1/sudir2 at the same time.  any hints how to do this?
thanks in advance,
marcos
*
*   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/


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