Skip site navigation (1)Skip section navigation (2)
Date:      01 Aug 2003 11:07:12 -0400
From:      Adam <blueeskimo@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to remove ^M character
Message-ID:  <1059750432.87906.87.camel@elwood>
In-Reply-To: <08ca01c35807$4abad740$1e003c0a@niksuntest>
References:  <08ca01c35807$4abad740$1e003c0a@niksuntest>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2003-08-01 at 04:31, Anil Garg wrote:
> I ftp'd a file from windows to freebsd....not its every line has ^M at its
> end.
> Is there some command in vi (or some way) by whcih ^M can be removed.

In general, you can use a tool such as converters/unix2dos

However, in regards to FTP, you simply need to transfer text files in
ASCII mode, so that the ^M's are automatically removed.

-- 
Adam <blueeskimo@gmx.net>



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