From owner-freebsd-questions@FreeBSD.ORG Mon May 8 13:56: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 39FD616A400 for ; Mon, 8 May 2006 13:56:56 +0000 (UTC) (envelope-from isachpaz@igd.fhg.de) Received: from mailgate2.igd.fraunhofer.de (mailgate2.igd.fhg.de [192.44.32.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B0BA43D46 for ; Mon, 8 May 2006 13:56:54 +0000 (GMT) (envelope-from isachpaz@igd.fhg.de) Received: from localhost (localhost [127.0.0.1]) by mailgate2.igd.fraunhofer.de (Postfix) with ESMTP id 6E590284E3; Mon, 8 May 2006 15:56:52 +0200 (CEST) Received: from pc1509 (unknown [146.140.222.122]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mailgate2.igd.fraunhofer.de (Postfix) with ESMTP id 2E5B8A961; Mon, 8 May 2006 15:56:50 +0200 (CEST) From: "Ilias Sachpazidis" To: "'Aguiar Magalhaes'" , Date: Mon, 8 May 2006 15:56:49 +0200 Organization: Fraunhofer IGD Message-ID: <007b01c672a7$40f26490$0bcba8c0@pc1509> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_007C_01C672B8.047B3490" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcZwRe+C362nteyHSgqZF37JoodFkQCYNfnA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <20060505131202.44990.qmail@web31608.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at mailgate2.igd.fraunhofer.de X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Mon, 08 May 2006 13:56:56 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_007C_01C672B8.047B3490 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I use the following: :.,$s/^M//g For ^M, you have to press Ctrl-V and then Best regards, Ilias --------------------------------------------------- Fraunhofer IGD Department Cognitive Computing & Medical Imaging Ilias Sachpazidis phone:+49/(0)/6151/155 507 Fraunhoferstr. 5 fax :+49/(0)/6151/155 480 D-64283 Darmstadt Ilias.Sachpazidis@igd.fhg.de Germany http://www.igd.fhg.de/~isachpaz --------------------------------------------------- -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Aguiar = Magalhaes Sent: Friday, May 05, 2006 3:12 PM To: freebsd-questions@freebsd.org Subject: Substitute command on vi 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 =09 _______________________________________________________=20 Abra sua conta no Yahoo! Mail: 1GB de espa=E7o, alertas de e-mail no = celular e anti-spam realmente eficaz.=20 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" ------=_NextPart_000_007C_01C672B8.047B3490--