From owner-freebsd-questions@FreeBSD.ORG Sat Aug 28 03:46:06 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 444F416A4CE for ; Sat, 28 Aug 2004 03:46:06 +0000 (GMT) Received: from raadradd.homeunix.org (bwu139.neoplus.adsl.tpnet.pl [83.29.244.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5B9043D3F for ; Sat, 28 Aug 2004 03:46:05 +0000 (GMT) (envelope-from radek@raadradd.com) Received: by raadradd.homeunix.org (Postfix, from userid 1001) id EC6BCA51D; Sat, 28 Aug 2004 05:46:04 +0200 (CEST) Date: Sat, 28 Aug 2004 05:46:04 +0200 From: Radek Kozlowski To: Mike Jeays Message-ID: <20040828034604.GA492@werd> References: <34b425c50408271652314776b1@mail.gmail.com> <20040828004618.GA2856@moo.holy.cow> <1093661524.743.111.camel@chaucer> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <1093661524.743.111.camel@chaucer> User-Agent: Mutt/1.5.6i cc: Soo-Hyun Choi cc: f-questions Subject: Re: vi editor related question 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: Sat, 28 Aug 2004 03:46:06 -0000 On Fri, Aug 27, 2004 at 10:52:04PM -0400, Mike Jeays wrote: > If you are using plain vi, you can get rid of the unwanted characters > with the command > :1,$s/ctrl-v-m//g where "ctrl-v-m' means hold down the Ctrl key while > you press v followed by m. You will see them magically disappear. Another way to do this: %s/\r// (% - act on all lines) -Radek