Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.shell Subject: Re: changing a ! to a \nC where \n is a newline Keywords: vi Message-ID: <1990Sep20.231733.17758@virtech.uucp> Date: 20 Sep 90 23:17:33 GMT References: <5015@alpha.cam.nist.gov> <1990Sep18.023649.1336@virtech.uucp> <2962@wyse.wyse.com> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 15 In article <2962@wyse.wyse.com> bob@wyse.UUCP (Bob McGowen x4312 dept208) writes: >In article <1990Sep18.023649.1336@virtech.uucp> cpcahil@virtech.UUCP (Conor P. Cahill) writes: > > > >:1,$s/!/-VC/g (this will appear as:1,$s/!/^MC/g) > > > >This will put carriage returns in the file, not newlines. Try it. It will put newlines into the file. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170