Date: Mon, 8 May 2006 15:56:49 +0200 From: "Ilias Sachpazidis" <isachpaz@igd.fhg.de> To: "'Aguiar Magalhaes'" <magalhj@yahoo.com.br>, <freebsd-questions@freebsd.org> Subject: RE: Substitute command on vi Message-ID: <007b01c672a7$40f26490$0bcba8c0@pc1509> In-Reply-To: <20060505131202.44990.qmail@web31608.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <Enter> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007b01c672a7$40f26490$0bcba8c0>