Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2006 10:40:17 -0700 (PDT)
From:      "Denis R." <darom@filmkern.com>
To:        magalhj@yahoo.com.br
Cc:        freebsd-questions@freebsd.org
Subject:   re: Substitute command on vi
Message-ID:  <31230.206.169.45.183.1146850817.squirrel@mail.filmkern.com>

next in thread | raw e-mail | index | archive | help
Try
#dos2unix file_name

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




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