From owner-freebsd-questions@FreeBSD.ORG Fri Aug 1 08:29:13 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 0B19837B401 for ; Fri, 1 Aug 2003 08:29:13 -0700 (PDT) Received: from ezekiel.daleco.biz (cdm-66-92-18-cart.cox-internet.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7BAA43F93 for ; Fri, 1 Aug 2003 08:29:11 -0700 (PDT) (envelope-from kadmin@ezekiel.daleco.biz) Received: from ezekiel.daleco.biz (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.12.9/8.12.3) with ESMTP id h71FTAMo001033; Fri, 1 Aug 2003 10:29:10 -0500 (CDT) (envelope-from kadmin@ezekiel.daleco.biz) Received: (from kadmin@localhost) by ezekiel.daleco.biz (8.12.9/8.12.3/Submit) id h71FT42t001032; Fri, 1 Aug 2003 10:29:04 -0500 (CDT) Date: Fri, 1 Aug 2003 10:29:04 -0500 From: Kevin Kinsey To: Anil Garg Message-ID: <20030801152904.GA1015@ezekiel.daleco.biz> References: <08ca01c35807$4abad740$1e003c0a@niksuntest> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <08ca01c35807$4abad740$1e003c0a@niksuntest> User-Agent: Mutt/1.4i cc: questions@freebsd.org 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: Fri, 01 Aug 2003 15:29:13 -0000 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