I have a directory of subdirectories corresponding to months/ years with each subdirectory named (subyymm, ex: sub1712). I have subdirectories for each month from sub1712 - sub1812. Within each subdirectory is a .txt file called "sub_data.txt', and this is consistent across all subdirectories. I was wondering would would be a quick way to loop through each subdirectory and append all 13 sub_data.txt files together? Right now I append one at a time, and this seems inefficient.
Thank you!
Related Posts with Looping through specific files in multiple subdirectories?
how to do fixed effects regressionHey my regression does not work, how do I do a fund and time fixed effectes regression? What do I ha…
SVAR estimation with growth and inflation - Impulse responsesHello
I am estimating an SVAR model with growth, taken as the first difference of log(GDP) and infl…
variance ratio test resultArray Hi.I did the variance ratio test after two samples using groups t test and the result is as se…
How to model persistence using survival analysis techniquesDear members,
I am trying to model persistence in exporting on a sample of new firms using survival…
Splitting YearDear, I am quite new to STATA and I need t seprate the year from tthe months and days, i.e. right no…
Subscribe to:
Post Comments (Atom)
0 Response to Looping through specific files in multiple subdirectories?
Post a Comment