Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!ukc!warwick!cvaxa!unx1!andy From: andy@unx1.UUCP (Andy Clews) Newsgroups: comp.unix.questions Subject: Invisible Ascii with VI Message-ID: <258@unx1.UUCP> Date: Wed, 23-Sep-87 09:30:37 EDT Article-I.D.: unx1.258 Posted: Wed Sep 23 09:30:37 1987 Date-Received: Sun, 27-Sep-87 10:08:40 EDT Organization: Univ. of Sussex Computing Service Lines: 11 Does anyone out there know if it's possible to insert/search/replace non-printing ascii characters? Specifically: I sometimes get files from a net source that have an "extra" CR tacked on the end of the line, and VI shows them as ^M on the screen. For various reasons these are a pain. I'd like to be able to get rid of them with, say, a global substitute. I've tried 1,$s/^V^M$// but this does not seem to do what I want. I'd appreciate email replies if any. Andy Clews andy@uk.ac.sussex.unx1