Path: utzoo!attcan!uunet!wuarchive!gem.mps.ohio-state.edu!rpi!crdgw1!ge-dab!peora!tarpit!bilver!bill From: bill@bilver.UUCP (Bill Vermillion) Newsgroups: comp.editors Subject: Re: VI - removing control characters Keywords: vi, control characters Message-ID: <419@bilver.UUCP> Date: 21 Sep 89 14:19:03 GMT References: <1600@ncrcan.Toronto.NCR.COM> Reply-To: bill@bilver.UUCP (Bill Vermillion) Organization: W. J. Vermillion, Winter Park, FL Lines: 19 In article <1600@ncrcan.Toronto.NCR.COM-> tim@ncrcan.Toronto.NCR.COM (Tim Nelson) writes: ->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. -> ->I have also attempted to use "tr", but the terminal is interpreting ->"^M" as a carriage control. I can't seem to escape the "^M". -> tr works for me - just try it the following way tr -d "\015" outfile -- Bill Vermillion - UUCP: {uiucuxc,hoptoad,petsd}!peora!tarpit!bilver!bill : bill@bilver.UUCP