Path: 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 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/!/-VC/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