From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 08:09:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCACF37B408 for ; Mon, 4 Aug 2003 08:09:04 -0700 (PDT) Received: from mailhost.hirshfields.com (mailhost.hirshfields.com [63.226.159.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4843E43FE1 for ; Mon, 4 Aug 2003 08:09:01 -0700 (PDT) (envelope-from pbiessener@hirshfields.com) Received: from ultra.hirshfields.com (ultra.hirshfields.com [192.168.195.101]) h74F90RU011782 for ; Mon, 4 Aug 2003 10:09:00 -0500 (CDT) Received: (qmail 3085 invoked from network); 4 Aug 2003 15:08:59 -0000 Received: from spicer.hirshfields.com (HELO hirshfields.com) (192.168.195.244) by ultra.hirshfields.com with SMTP; 4 Aug 2003 15:08:59 -0000 Message-ID: <3F2E770B.10001@hirshfields.com> Date: Mon, 04 Aug 2003 10:08:59 -0500 From: C Peter Biessener User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <08ca01c35807$4abad740$1e003c0a@niksuntest> <20030801140211.GA418@zi025.glhnet.mhn.de> In-Reply-To: <20030801140211.GA418@zi025.glhnet.mhn.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: How to remove ^M character X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2003 15:09:05 -0000 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