Path: utzoo!attcan!telly!lethe!torsqnt!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!iconsys!ohs!mday From: mday@ohs.UUCP (Matthew T. Day) Newsgroups: comp.editors Subject: Re: VI - removing control characters Message-ID: <435@ohs.UUCP> Date: 21 Sep 89 17:37:57 GMT References: <1600@ncrcan.Toronto.NCR.COM> Organization: Orem High School, Orem, Utah Lines: 18 From article <1600@ncrcan.Toronto.NCR.COM>, by tim@ncrcan.Toronto.NCR.COM (Tim Nelson): > I have files which have a visible ^M (real control M, not up-arrow M) > at the end of every line. This ^M is making all my files double space > when I print them. I have been able to remove the real character, > from within vi, but that leaves the visible ^M; it solves the problem > of double spacing, but is not quite a good solution. > I want to be rid of the visible ^M. In "vi": :1,$ s/^V^M$//g Sometimes, in the csh of tcsh, you can use ^V on the command line to escape a character, that way you could use tr. -- +---------------------------------------------------------------------+ | Matthew T. Day, Sanyo/Icon International, Orem, UT (801) 225-6888 | | Unix System Programmer, ..!uunet!iconsys!mday (mday@iconsys.uu.net) | +---------------------------------------------------------------------+