From owner-freebsd-questions@FreeBSD.ORG Sun Jan 25 01:57:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1556616A4CE for ; Sun, 25 Jan 2004 01:57:51 -0800 (PST) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7CE743D45 for ; Sun, 25 Jan 2004 01:57:49 -0800 (PST) (envelope-from kstewart@owt.com) Received: from topaz-out (owt-207-41-94-233.owt.com [207.41.94.233]) by rutger.owt.com (8.11.6p2/8.9.3) with ESMTP id i0P9ql223172; Sun, 25 Jan 2004 01:52:47 -0800 From: Kent Stewart To: "marlon corleone" , freebsd-questions@freebsd.org, misc@openbsd.org Date: Sun, 25 Jan 2004 01:52:46 -0800 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401250152.46526.kstewart@owt.com> Subject: Re: how to get rid of ^M character using vi X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2004 09:57:51 -0000 On Sunday 25 January 2004 01:43 am, marlon corleone wrote: > how do i get rid of this annoying character ^M using vi, in pico i > used the arguments '-w' > but what about in vi? > starting on the 1st line type :.,$s/vm// The .,$ tells it to process from the current line to the last one. Then, you have to hold the control key down when you press the v and then the m. This enters a ^M and the // deletes the occurance. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html