Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2004 12:35:13 -0500
From:      Albert Vest <alvest@earthlink.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to get rid of ^M character using vi
Message-ID:  <20040125123513.18d9f232.alvest@earthlink.net>
In-Reply-To: <4013944B.6070900@foulplay.org>
References:  <BAY13-F62bUpm0RnzXo00012ad5@hotmail.com> <4013944B.6070900@foulplay.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 Jan 2004 05:02:51 -0500
Avijit Pathania <foulplay@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



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