Path: utzoo!utgpu!water!watmath!mks!wheels
From: wheels@mks.UUCP (Gerry Wheeler)
Newsgroups: comp.sys.ibm.pc
Subject: Re: CR? LF? CRLF????
Summary: yes, use mks vi or other tools
Message-ID: <466@mks.UUCP>
Date: 3 Jun 88 20:57:16 GMT
References: <1770@loral.UUCP>
Organization: Mortice Kern Systems, Waterloo, Ont.
Lines: 18

In article <1770@loral.UUCP>, jlh@loral.UUCP (The Mad Merkin Hunter) writes:
> I've downloaded some text files from a UN*X machine via arc and xmodem. 
> but it turns out that the lines end in line feed.  Edlin rides the
> porcelan bus unless it sees a CR LF combination.  So, is there an easy
> way in DOS or MKS vi to automatically do this conversion?

Yes. Read the file into vi and write it out.

In fact, most of the MKS tools will read the files which have only
linefeeds at the line ends, and will rewrite the file with cr-lf.  For
example, you can run sed with just the p command.  The exceptions are
cat and tr, which read and write the file in binary mode. 

-- 
     Gerry Wheeler                           Phone: (519)884-2251
Mortice Kern Systems Inc.               UUCP: uunet!watmath!mks!wheels
   35 King St. North                             BIX: join mks
Waterloo, Ontario  N2J 2W9                  CompuServe: 73260,1043