changing a ! to a \nC where \n is a newline
Conor P. Cahill
cpcahil at virtech.uucp
Tue Sep 18 12:36:49 AEST 1990
In article <5015 at alpha.cam.nist.gov> coleman at cam.nist.gov (Sean Sheridan Coleman X5672) writes:
>I am trying to use the global substitution power in vi to
>replace every occurrence of ! with a newline and a C (\nC)
:1,$s/!/<ctrl>-V<Return>C/g (this will appear as:1,$s/!/^MC/g)
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.unix.shell
mailing list