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?
Problems with zero in matrix Hi I am working with a transition matrix in stata recently and I have 4 x 4 matrix. I have the 4th …
Statalist reputation bars under nameUsually very active members on Statalist have orange bars under their name. I noticed some orange ba…
Margins Error - Delta Ordered Probit RegressionHello Statalst, Has anyone experienced an error like this or know what it means? I lagged and diffe…
Invalid Syntax r(198)Hi everyone, I was wondering if I could get help to figure out the problem with one of my commands.…
Post-estimation test of the reg3 commandHi, I have been grappling with -reg3- command which implements 3SLS for a system of equations. Tryi…
Subscribe to:
Post Comments (Atom)
0 Response to Looping through specific files in multiple subdirectories?
Post a Comment