Substitute command on vi
Kalashnikov Ilya
kalashnikovi at mail.ru
Fri May 5 16:07:58 UTC 2006
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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 at mail.ru>
More information about the freebsd-questions
mailing list