Substitute command on vi
Giorgos Keramidas
keramida at ceid.upatras.gr
Fri May 5 13:45:48 UTC 2006
On 2006-05-05 10:12, Aguiar Magalhaes <magalhj at yahoo.com.br> 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.
The command looks fine, except for a tiny detail:
Make sure you use ^V ^M to insert a *literal* ^M character in the
match pattern, instead of two different characters '^' and 'M'.
Then it should work.
More information about the freebsd-questions
mailing list