RE: Substitute command on vi

2006-05-08 Thread Ilias Sachpazidis
I use the following: :.,$s/^M//g For ^M, you have to press Ctrl-V and then Best regards, Ilias --- Fraunhofer IGD Department Cognitive Computing & Medical Imaging Ilias Sachpazidis phone:+49/(0)/6151/155 507 Fraunhoferstr. 5 fax :+49/(0)/61

RE: Substitute command on vi

2006-05-07 Thread Murray Taylor
rom: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Denis R. > Sent: Saturday, 6 May 2006 3:40 AM > To: [EMAIL PROTECTED] > Cc: freebsd-questions@freebsd.org > Subject: re: Substitute command on vi > > Try > #dos2unix file_name > > >>>>>

re: Substitute command on vi

2006-05-05 Thread Denis R.
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 ___ freebsd-questions@freebsd.org maili

Re: Substitute command on vi

2006-05-05 Thread Kalashnikov Ilya
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 > > > > ___

Re: Substitute command on vi

2006-05-05 Thread Giorgos Keramidas
On 2006-05-05 10:12, Aguiar Magalhaes <[EMAIL PROTECTED]> 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 in

Re: Substitute command on vi

2006-05-05 Thread Riemer Palstra
On Fri, May 05, 2006 at 10:12:02AM -0300, Aguiar Magalhaes wrote: > I need to substitute a lot of characters ^M (ctrl+M) > at the end of each line in my file. You might wanna give dos2unix a try: /usr/local/bin/dos2unix > The command :%s/^M//g insn't have success. Is this a shift+6 M, or a ctrl+

Re: Substitute command on vi

2006-05-05 Thread guru
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 -- Matthia