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

BURNS,JIM gt0178a at prism.gatech.EDU
Thu Sep 20 20:49:58 AEST 1990


in article <2962 at wyse.wyse.com>, bob at wyse.wyse.com (Bob McGowen x4312 dept208) says:
> In article <1990Sep18.023649.1336 at virtech.uucp> cpcahil at 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 at prism.gatech.edu



More information about the Comp.unix.shell mailing list