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

Re: st: RE: Tracing dofile execution

From   Kit Baum <>
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   |
                              An Introduction to Stata Programming  |
   An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

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