From owner-freebsd-questions@FreeBSD.ORG Sat Aug 28 03:51:04 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 02D2F16A4CE for ; Sat, 28 Aug 2004 03:51:04 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9569E43D39 for ; Sat, 28 Aug 2004 03:51:03 +0000 (GMT) (envelope-from subhro.kar@gmail.com) Received: by mproxy.gmail.com with SMTP id v30so63462rnb for ; Fri, 27 Aug 2004 20:50:54 -0700 (PDT) Received: by 10.38.8.48 with SMTP id 48mr459950rnh; Fri, 27 Aug 2004 20:50:54 -0700 (PDT) Received: by 10.38.206.18 with HTTP; Fri, 27 Aug 2004 20:50:54 -0700 (PDT) Message-ID: Date: Sat, 28 Aug 2004 09:20:54 +0530 From: Subhro To: FreeBSD-questions In-Reply-To: <20040828034604.GA492@werd> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <34b425c50408271652314776b1@mail.gmail.com> <1093661524.743.111.camel@chaucer> <20040828034604.GA492@werd> Subject: Re: vi editor related question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Subhro List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2004 03:51:04 -0000 I have come across a script (Perl) called dos2unix. You can check that out too. Google for the link. Regards S. On Sat, 28 Aug 2004 05:46:04 +0200, Radek Kozlowski wrote: > 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 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Subhro Sankha Kar School of Information Technology Block AQ-13/1 Sector V ZIP 700091 India