From owner-freebsd-questions@FreeBSD.ORG Fri May 5 16:07:57 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 C408E16A406 for ; Fri, 5 May 2006 16:07:57 +0000 (UTC) (envelope-from kalashnikovi@mail.ru) Received: from mx27.mail.ru (mx27.mail.ru [194.67.23.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91D0343D70 for ; Fri, 5 May 2006 16:07:50 +0000 (GMT) (envelope-from kalashnikovi@mail.ru) Received: from [194.44.21.158] (port=6181 helo=n-ss.nighterra) by mx27.mail.ru with esmtp id 1Fc2qE-000HTz-00; Fri, 05 May 2006 20:07:43 +0400 From: Kalashnikov Ilya To: Aguiar Magalhaes In-Reply-To: <20060505131202.44990.qmail@web31608.mail.mud.yahoo.com> References: <20060505131202.44990.qmail@web31608.mail.mud.yahoo.com> Content-Type: multipart/related; type="multipart/alternative"; boundary="=-YPZvma4JaFGMAyMQHB4n" Date: Fri, 05 May 2006 19:07:31 +0300 Message-Id: <1146845251.22809.8.camel@n-ss.nighterra> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 16:07:58 -0000 --=-YPZvma4JaFGMAyMQHB4n Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Fri, 2006-05-05 at 10:12 -0300, Aguiar Magalhaes wrote: > Hi list, > > I need to substitute a lot of characters ^M (ctrl+M) > at the end of each line in my file. > > The command :%s/^M//g insn't have success. > > How can i do it ? > > Thanks, > > Aguiar > > > > _______________________________________________________ > Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. > http://br.info.mail.yahoo.com/ > _______________________________________________ > 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" > I also has it problem. I'm in Midnight Commander copy symbol '^M' and paste to my script instead (see below) :-/ script: sed -e 's/$//g' filename > filename.copy It work. :) -- Kalashnikov Ilya --=-YPZvma4JaFGMAyMQHB4n--