Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: Tracing dofile execution


From   Kit Baum <[email protected]>
To   [email protected]
Subject   Re: st: RE: Tracing dofile execution
Date   Wed, 10 Feb 2010 09:59:59 -0500

<>
This is not correct Unix syntax (and it does not work on Mac OS X). You cannot include plus signs in a cp command.

bcvpn13:code baum$ cp one.file+two.file+three.files allfiles2
cp: one.file+two.file+three.files: No such file or directory

A common way to do what you are trying to do is

bcvpn13:code baum$ cat one.file two.file three.file > allfiles

'cat' is short for 'concatenate', which implies the desired appending behavior. This will work on all non-Windows OS supported by Stata.

On Feb 10, 2010, at 2:33 AM, Eric wrote:

> if "`c(os)'" == "MacOSX" {
> !cp  "`top'"+"`using'"+"`bottom'" "`c(sysdir_personal)'dotemp.ado" -R
> *( you'd need to explore the help file for "cp" to see if it could append the files first)
> }


Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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