vi editor related question

Subhro subhro.kar at gmail.com
Fri Aug 27 20:51:04 PDT 2004


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


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


More information about the freebsd-questions mailing list