Article View: comp.unix.shell
Article #1200Re: changing a ! to a \nC where \n is a newline
From: Conor P. Cahill
Date: Fri, 21 Sep 1990 13:48
Date: Fri, 21 Sep 1990 13:48
21 lines
1702 bytes
1702 bytes
In article <2965@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.
>
>If the input ^M were made into a linefeed the file should still be UNIX
>only double spaced (in this example). So under XENIX 2.[23].x and AT&T
>UNIX SysV/386 Rel 3.2 there is no conversion of cr to nl set by vi.
>Other systems may do this and I would be interested in knowing which ones.
As far a I know it works (replaces with a newline) this way on every system.
Obviously that isn't the case. I have tried it (and know it works that way)
on Sun OS, HP-UX, Ultrix, and Interactive (both 2.2 and 2.0.2).
I don't have it running anymore to check, but I am pretty sure it
worked this way under microport unix & Bell Tech unix.
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
Technical Details
Message-ID:
<1990Sep21.134832.21480@virtech.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!virtech!cpcahilReferences:
<2962@wyse.wyse.com> <13894@hydra.gatech.EDU> <2965@wyse.wyse.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!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 Message-ID: <1990Sep21.134832.21480@virtech.uucp> Date: 21 Sep 90 13:48:32 GMT References: <2962@wyse.wyse.com> <13894@hydra.gatech.EDU> <2965@wyse.wyse.com> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 21