🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1191

Re: changing a ! to a \nC where \n is a newline

#1191
From: Conor P. Cahill
Date: Thu, 20 Sep 1990 23:17
15 lines
1132 bytes
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/!/<ctrl>-V<Return>C/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 
Technical Details
Message-ID: <1990Sep20.231733.17758@virtech.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil
References: <5015@alpha.cam.nist.gov> <1990Sep18.023649.1336@virtech.uucp> <2962@wyse.wyse.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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