From owner-freebsd-questions@FreeBSD.ORG Mon May 9 01:15:05 2005 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 A741416A4E6 for ; Mon, 9 May 2005 01:15:05 +0000 (GMT) Received: from iqara.net (sendmail.iqara.net [203.187.192.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29E9B43D69 for ; Mon, 9 May 2005 01:15:04 +0000 (GMT) (envelope-from shantanoo@gmail.com) Received: (qmail 3581 invoked by uid 517); 9 May 2005 00:53:49 -0000 Received: from shantanoo@gmail.com by sendmail.iqara.net by uid 505 with qmail-scanner-1.20 (avgd: ???. Clear:RC:1(219.91.153.219):. Processed in 0.015524 secs); 09 May 2005 00:53:49 -0000 Received: from 219-153.91.219.cable-client.iqara.net (HELO dhumketu.homeunix.net) ([219.91.153.219]) (envelope-sender ) by iqara.net (qmail-ldap-1.03) with SMTP for ; 9 May 2005 00:53:49 -0000 Received: by dhumketu.homeunix.net (Postfix, from userid 1001) id 8B05A6352; Mon, 9 May 2005 06:45:01 +0530 (IST) Date: Mon, 9 May 2005 06:45:01 +0530 From: Shantanoo Mahajan To: Fafa Hafiz Krantz Message-ID: <20050509011501.GA808@dhumketu.homeunix.net> References: <20050508192019.127ED1CE303@ws1-6.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050508192019.127ED1CE303@ws1-6.us4.outblaze.com> User-Agent: Mutt/1.4.2.1i Organization: Hmmm... I dunno X-OS: FreeBSD 5.3-RELEASE-p5 i386 X-UPTIME: 6:40AM up 56 secs, 2 users, load averages: 0.61, 0.24, 0.09 X-Mailer-Website: http://www.mutt.org cc: questions@freebsd.org Subject: Re: On removing ^M 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, 09 May 2005 01:15:05 -0000 +++ Fafa Hafiz Krantz [freebsd] [08-05-05 14:20 -0500]: | | Good day all! | | I am aware of the port unix2dos (dos2unix) as a tool to | remove ^Ms from ASCII files. | | But if you execute dos2unix in a directory where some files | contain ^M (CR/LF) and some files don't (CR), then dos2unix | will make a mess of those files who don't. | | I am wondering what is needed (what tool or what code) to | do a mass (recursive) removal of ^Ms? | | Thanks! - Check out the archive. This question is asked many times before. - Answer: 'col -bx < old.file > > new.file' Regards, Shantanoo