From owner-freebsd-questions@FreeBSD.ORG Fri Aug 1 15:45:49 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 C186737B401 for ; Fri, 1 Aug 2003 15:45:49 -0700 (PDT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48C8F43F3F for ; Fri, 1 Aug 2003 15:45:49 -0700 (PDT) (envelope-from paulbeard@mac.com) Received: from webmail07.mac.com (webmail07-en1 [10.13.11.149]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h71MjmKl012675; Fri, 1 Aug 2003 15:45:48 -0700 (PDT) Received: from webmail07 (localhost [127.0.0.1]) by webmail07.mac.com (8.12.2/8.12.2) with ESMTP id h71MjmIo012984; Fri, 1 Aug 2003 15:45:48 -0700 (PDT) Message-ID: <8163366.1059777948620.JavaMail.paulbeard@mac.com> Date: Fri, 01 Aug 2003 15:45:48 -0700 From: Paul Beard To: Anil Garg Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: freebsd-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 22:45:50 -0000 On Friday, August 01, 2003, at 01:31AM, 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. > got room for one more? perl -pi -e s#\\r#\\n#g -- Paul Beard / 8040 27th Ave NE / Seattle WA 98115 / paulbeard [at] mac [ dot] com / 206 529 8400 weblog @