Article View: comp.unix.shell
Article #1185Re: changing a ! to a \nC where \n is a newline
From: BURNS,JIM
Date: Thu, 20 Sep 1990 10:49
Date: Thu, 20 Sep 1990 10:49
13 lines
1068 bytes
1068 bytes
in article <2962@wyse.wyse.com>, bob@wyse.wyse.com (Bob McGowen x4312 dept208) says:
> 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.
I thought so too at first, but it works on Dynix and SunOS 4.0.3. Probably
has something to do w/ the equivalent of an 'stty icrnl' mode that vi sets
when executed.
--
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a@prism.gatech.edu
Technical Details
Message-ID:
<13894@hydra.gatech.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!rutgers!mephisto!prism!gt0178aReferences:
<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!uwm.edu!rutgers!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.shell Subject: Re: changing a ! to a \nC where \n is a newline Message-ID: <13894@hydra.gatech.EDU> Date: 20 Sep 90 10:49:58 GMT References: <2962@wyse.wyse.com> Organization: Georgia Institute of Technology Lines: 13