how to get rid of ^M character using vi

Albert Vest alvest at earthlink.net
Sun Jan 25 09:35:16 PST 2004


On Sun, 25 Jan 2004 05:02:51 -0500
Avijit Pathania <foulplay at foulplay.org> wrote:

> Looks like your file might have been edited in a dos text editor. You 
> can try running dos2unix against it to see if that helps.

Looks like a jump to conclusions.  I find the same artifact every time I run script (usually when building ports, to capture the output).  THE ^M (sometimes two) are plainly visible when opening the file in ee.  All FreeBSD4.7, no dos involved.

> marlon corleone wrote:
> 
> > how do i get rid of this annoying character ^M using vi, in pico i 
> > used the arguments '-w'
> > but what about in vi?
> >
> > cheers

Thanks,

-- 
Albert Vest, al vest at earth link dot net


More information about the freebsd-questions mailing list