From owner-freebsd-questions@FreeBSD.ORG Sun May 8 19:20:19 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 857D416A4E6 for ; Sun, 8 May 2005 19:20:19 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AEC343D70 for ; Sun, 8 May 2005 19:20:19 +0000 (GMT) (envelope-from fteg@london.com) Received: from unknown (unknown [192.168.9.180])2BF8418001A0 for ; Sun, 8 May 2005 19:20:19 +0000 (GMT) X-OB-Received: from unknown (205.158.62.182) by wfilter.us4.outblaze.com; 8 May 2005 19:20:19 -0000 Received: by ws1-6.us4.outblaze.com (Postfix, from userid 1001) id 127ED1CE303; Sun, 8 May 2005 19:20:19 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [213.187.181.70] by ws1-6.us4.outblaze.com with http for fteg@london.com; Sun, 08 May 2005 14:20:19 -0500 From: "Fafa Hafiz Krantz" To: questions@freebsd.org Date: Sun, 08 May 2005 14:20:19 -0500 X-Originating-Ip: 213.187.181.70 X-Originating-Server: ws1-6.us4.outblaze.com Message-Id: <20050508192019.127ED1CE303@ws1-6.us4.outblaze.com> Subject: 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: Sun, 08 May 2005 19:20:19 -0000 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! -- Fafa Hafiz Krantz Research Designer @ http://www.home.no/barbershop Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf --=20 ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm