Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 May 2006 19:07:31 +0300
From:      Kalashnikov Ilya <kalashnikovi@mail.ru>
To:        Aguiar Magalhaes <magalhj@yahoo.com.br>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Substitute command on vi
Message-ID:  <1146845251.22809.8.camel@n-ss.nighterra>
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

--=-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 <kalashnikovi@mail.ru>

--=-YPZvma4JaFGMAyMQHB4n--




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