Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2006 15:17:52 +0200
From:      guru@Sisis.de
To:        Aguiar Magalhaes <magalhj@yahoo.com.br>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Substitute command on vi
Message-ID:  <20060505131752.GA8568@rebelion.Sisis.de>
In-Reply-To: <20060505131202.44990.qmail@web31608.mail.mud.yahoo.com>
References:  <20060505131202.44990.qmail@web31608.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Friday, May 05, 2006 a las 10:12:02AM -0300, Aguiar Magalhaes escribió:

> 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 ?

:1,$s-.$--

	matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC PICA GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <m.apitz@oclcpica.org> - w http://www.oclcpica.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060505131752.GA8568>