Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Aug 2003 09:37:10 +0100
From:      Karl Pielorz <kpielorz@tdx.co.uk>
To:        Anil Garg <anilg@niksun.com>, freebsd-questions@freebsd.org
Subject:   Re: How to remove ^M character
Message-ID:  <68277109.1059730630@raptor>
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 01 August 2003 14:01 +0530 Anil Garg <anilg@niksun.com> wrote:

> Hi,
>
> 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 which ^M can be removed.

man tr

or simply,

cat file | tr -d "\r" > newfile

-Kp



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