Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!jkg From: jkg@gatech.edu (Jim Greenlee) Newsgroups: comp.sys.ibm.pc Subject: Re: CR? LF? CRLF???? Message-ID: <17210@gatech.edu> Date: 2 Jun 88 13:54:59 GMT Article-I.D.: gatech.17210 References: <1770@loral.UUCP> Reply-To: jkg@gatech.UUCP (Jim Greenlee) Organization: Georgia Institute of Technology Lines: 19 In article <1770@loral.UUCP> jlh@loral.UUCP (The Mad Merkin Hunter) writes: >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? The easiest way to do this is with MKS vi. Just vi the file and do a ":wq!". MKS vi automatically converts LF characters to CR/LF pairs when it writes the file to disk. The trick is that you have to force it to write the file (if you don't edit the file somehow, then the copy on disk will not be updated if you do a ":wq", hence the "!"). Disclaimer: this works with the 2.2b version of vi. Jim Greenlee -- Mr. News (aka Jim "the Screw" Greenlee) jkg@gatech.edu Instructor, School of ICS, Georgia Tech ...!gatech!jkg Tipper Gore Food: "Race with the Devil on Spanish Highway", "Bush in `88"