Created
March 7, 2024 18:06
-
-
Save bbdaniels/05fe86c25492cbf43dcbacd4e9153519 to your computer and use it in GitHub Desktop.
Bulk copy files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Move data from Box to git location | |
foreach file in `: dir "${box}/constructed/" files "*.dta" ' { | |
local file = subinstr("`file'",".dta","",.) | |
iecodebook export "${box}/constructed/`file'.dta" /// | |
using "${git}/data/`file'.xlsx" /// | |
, save replace sign reset | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment