Date: Mon, 04 Aug 2003 10:08:59 -0500 From: C Peter Biessener <pbiessener@hirshfields.com> To: freebsd-questions@freebsd.org Subject: Re: How to remove ^M character Message-ID: <3F2E770B.10001@hirshfields.com> In-Reply-To: <20030801140211.GA418@zi025.glhnet.mhn.de> References: <08ca01c35807$4abad740$1e003c0a@niksuntest> <20030801140211.GA418@zi025.glhnet.mhn.de>
next in thread | previous in thread | raw e-mail | index | archive | help
You can also use ASCII mode in ftp, it will translate the line ends for you. BINARY mode is for programs and archive files (zip, tar, tgz, etc...) Simon Barner 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. > > > You can use dos2unix(1) for that. There is also the complementary tool > unix2dos(1). > > Simon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F2E770B.10001>