Line Breaks

A.J. Rossini rossini at blindglobe.net
Fri Jun 27 05:33:57 CEST 2003


Welcome to one of the seven wonders of Windows: incompatible line
endings.

There are tools to automate the process (not sure if OS-X has
dos2unix), but using Emacs, one can always do something like:

M-x query-replace <ret> C-q C-m <ret> <ret>

(where <ret> is the enter or return key).

best,
-tony


bb2 at duke.edu writes:

> Hi All,
>
> I've recently migrated from Splus 2000 (Windows) to R on Mac OSX.  In
> the process, I've begun using Xemacs and ESS to work in R.  As a
> result, I have moved my old .ssc files to this new environment (burned
> them to a cd and moved them onto my new computer).  When I open the
> .ssc files in Xemacs, there is a "^M" at the end of each line.  I can
> scroll through the file deleting each "^M" but this is very slow.
>
> How can I easily remove these with Xemacs or avoid the entire problem
> to begin with?
>
> Similarly, I use winBugs on Virtual Windows and when I paste text from
> winBugs into Xemacs (running on OSX), I have the same problem.
>
> Any suggestions would be appreciated.
>
> Thanks for your help,
> Brian
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/ess-help
>

-- 
A.J. Rossini  /  rossini at u.washington.edu  /  rossini at scharp.org
http://software.biostat.washington.edu/ UNTIL IT MOVES IN JULY.
Biomedical and Health Informatics, University of Washington
Biostatistics, HVTN/SCHARP, Fred Hutchinson Cancer Research Center.
FHCRC: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email 

CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}




More information about the ESS-help mailing list