Subject: Re: CR's in files
To: Jay Yanek <Jyanek@cris.com>
From: The Great Mr. Kurtz <davagatw@mars.utm.edu>
List: port-mac68k
Date: 12/20/1995 11:12:32
On Tue, 19 Dec 1995, Jay Yanek wrote:

> I'm having a problem with getting ^M instead of a return in files.  For 
> instance, I downloaded 'dt-1.1.3' ... however, when looking at the source 
> files, none were very readable since the returns were substituted with 
> ^M.  Something didn't transfer right!  I could look at the correctly in 
> Microsoft Word, but when transferred to unix it ran together.

To quote the responses to my question about crlf conversion, use tr.

tr '\r' '\n' <mac-text >unix-text

 /---------------------------------------------------------------------\
|David A. Gatwood             And Richard Cory, one calm summer night,  |
|davagatw@mars              Went home and put a bullet through his head.|
|dgatwood@nyx.cs.du.edu              --Edwin Arlington Robinson         |
|http://mars.utm.edu/~davagatw -or- http://nox.cs.du.edu:8001/~dgatwood |
 \---------------------------------------------------------------------/