Statalist


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

Re: st: WinEdt+Stata+unix


From   Michael Manti <statboy3000@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: WinEdt+Stata+unix
Date   Sat, 14 Feb 2009 08:21:08 -0500

You can run dos2unix on your do files before ftp'ing them to the Unix server. dos2unix will convert the line breaks.

dos2unix is available as part of Cygwin (http://www.cygwin.com/). IIRC, Cygwin installs dos2unix by default. If not, Cygwin's graphical installer makes it easy to find and install GNU software.

Googling, I also found http://www.dos2unix.org/, which converts files online.

HTH,

Michael

On Feb 13, 2009, at 9:49 PM, dgomez@uchicago.edu wrote:

Hi,

I am writing my Stata do files in WinEdt using the Stata Mode
and then trying to run these .do files on a unix server. The
files, however, are stored with windows line breaks (^M) so I
can't run them or have to first clean them up on a unix based
editor.

Any ideas of how to fix this, or how to save the files from
WinEdt with no windows marks?

Thanks,

Daniel

*
*   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/

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index