Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2003 10:29:04 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        Anil Garg <anilg@niksun.com>
Cc:        questions@freebsd.org
Subject:   Re: How to remove ^M character
Message-ID:  <20030801152904.GA1015@ezekiel.daleco.biz>
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, Aug 01, 2003 at 02:01:18PM +0530, Anil Garg 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 whcih ^M can be removed.
> 
> Thanks
> Anil
> 
YAW (yet another way...)

sed 's/.$//' infile.txt > outfile.txt


KDK



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