Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 2004 09:20:54 +0530
From:      Subhro <subhro.kar@gmail.com>
To:        FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   Re: vi editor related question
Message-ID:  <b2807d0404082720504747dde3@mail.gmail.com>
In-Reply-To: <20040828034604.GA492@werd>
References:  <34b425c50408271652314776b1@mail.gmail.com> <1093661524.743.111.camel@chaucer> <20040828034604.GA492@werd>

next in thread | previous in thread | raw e-mail | index | archive | help
I have come across a script (Perl) called dos2unix. You can check that
out too. Google for the link.

Regards
S.

On Sat, 28 Aug 2004 05:46:04 +0200, Radek Kozlowski <radek@raadradd.com> wrote:
> On Fri, Aug 27, 2004 at 10:52:04PM -0400, Mike Jeays wrote:
> > If you are using plain vi, you can get rid of the unwanted characters
> > with the command
> > :1,$s/ctrl-v-m//g where "ctrl-v-m' means hold down the Ctrl key while
> > you press v followed by m.  You will see them magically disappear.
> 
> Another way to do this: %s/\r//
> 
> (% - act on all lines)
> 
> -Radek
> 
> 
> _______________________________________________
> 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"
> 


-- 
Subhro Sankha Kar
School of Information Technology
Block AQ-13/1 Sector V
ZIP 700091
India



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