Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Shell


From   "Hans J. Baumgartner" <[email protected]>
To   [email protected]
Subject   st: Shell
Date   Fri, 6 May 2005 11:13:16 +0200

Dear statalist,

I am using Stata8 on a Unix machine. 

I am using the a shell to erase some files, but while doing so Stata does 
not find the end of the loop. Why?

Example

foreach x in ? {
        do something
        ! rm ${temp}/*.*
}

Stata does not read the closing bracket. 

Any suggestions?
Hans





++++++++++++++++++++++++++++++++
Hans J. Baumgartner
Dept. Public Economics
DIW Berlin
German Institut for Economic Research
phone: +49/30/89789-307
fax :      +49/30/89789-114
URL: www.diw.de
          www.hansbaumgartner.de
++++++++++++++++++++++++++++++++

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index