From owner-freebsd-questions Tue Dec 25 17:51: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mango-bay.com (mail.mango-bay.com [208.206.15.12]) by hub.freebsd.org (Postfix) with ESMTP id E517F37B417 for ; Tue, 25 Dec 2001 17:51:03 -0800 (PST) Received: from barbish ([63.70.155.20]) by mail.mango-bay.com (Post.Office MTA v3.5.3 release 223 ID# 0-52377U2500L250S0V35) with SMTP id com; Tue, 25 Dec 2001 20:53:12 -0500 From: "Joe & Fhe Barbish" To: "Jonathan Chen" Cc: "FBSD Questions" Subject: RE: Dos -> Unix end-of-line conversion Date: Tue, 25 Dec 2001 20:51:01 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20011226113216.A24782@grimoire.chen.org.nz> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG How can I get this command to roll through a directory tree processing all the files to feed this $ tr -d '\r' < oldfile > newfile command converting dos2unix or unix2dos? There is a dos2unix / unix2dos port but it only does one file at a time. -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Jonathan Chen Sent: Tuesday, December 25, 2001 5:32 PM To: Michal Pasternak Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Dos -> Unix end-of-line conversion On Tue, Dec 25, 2001 at 11:24:41PM +0100, Michal Pasternak wrote: > Hello, > > are there any programs (in baseinstall) which allow that (except perl)? $ tr -d '\r' < oldfile > newfile is one quick and dirty way to do it... -- Jonathan Chen ----------------------------------------------------------------------- "I love deadlines. I like the whooshing sound they make as they fly by" - Douglas Adams To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message