I have a long command in a shell escape that includes semicolons. If use -#delimit ;- to allow for a long command, Stata notices the semicolons that are part of the shell command. Is there a way to escape the semicolons so that they are passed to the OS?
#delimit ;
! very long shell command including semicolons
like this ; and various quote marks continued on this line
and on this one
#delimit cr
I did notice that Stata does remove the newlines, so that the shell gets one long line up to the first semicolon and macros are expanded but I couldn't find any documentation for any of that.
Related Posts with Escape character in shell command
Generating data to balance a panel datasetHi, I have a panel from Compustat like the below in Table 1 (table 1 is a subset of the data to sho…
Extract Year from Date (11985 - 122018)Hello, I am working with the BRFS data. I am interested in using a variable - Recent HIV testing. …
Running Diebold Mariano test using panel data.Hi everyone, I am totally new here and very new to Stata, nice to meet you all. This maybe a very s…
Inconsistency of data in national surveyGood morning, sorry I am dealing with a topic of inconsistency of data generated by me with those ge…
Getting different results from running same exact code - why?I am dropping observations based on various if statements written in a do file. I have all the code …
Subscribe to:
Post Comments (Atom)
0 Response to Escape character in shell command
Post a Comment