Substitute command on vi

guru at Sisis.de guru at Sisis.de
Fri May 5 13:18:04 UTC 2006


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 at oclcpica.org> - w http://www.oclcpica.org/


More information about the freebsd-questions mailing list