From owner-freebsd-questions@FreeBSD.ORG Fri May 5 13:21:56 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 8037C16A43B for ; Fri, 5 May 2006 13:21:56 +0000 (UTC) (envelope-from riemer@palstra.com) Received: from palstra.com (palstra.com [82.201.5.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DD6943D45 for ; Fri, 5 May 2006 13:21:56 +0000 (GMT) (envelope-from riemer@palstra.com) Received: from riemer by palstra.com with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1Fc0Fn-000FMJ-90; Fri, 05 May 2006 15:21:55 +0200 Date: Fri, 5 May 2006 15:21:55 +0200 From: Riemer Palstra To: Aguiar Magalhaes Message-ID: <20060505132155.GC36379@rb1.palstra.com> References: <20060505131202.44990.qmail@web31608.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060505131202.44990.qmail@web31608.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: Substitute command on vi X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2006 13:21:59 -0000 On Fri, May 05, 2006 at 10:12:02AM -0300, Aguiar Magalhaes wrote: > I need to substitute a lot of characters ^M (ctrl+M) > at the end of each line in my file. You might wanna give dos2unix a try: /usr/local/bin/dos2unix > The command :%s/^M//g insn't have success. Is this a shift+6 M, or a ctrl+V ctrl+M? The last one should work. -- Riemer Palstra Amsterdam, The Netherlands riemer@palstra.com http://www.palstra.com/