From owner-freebsd-questions Tue Dec 25 18:15:42 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 5836937B416 for ; Tue, 25 Dec 2001 18:15:40 -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 21:17:50 -0500 From: "Joe & Fhe Barbish" To: "Dave" Cc: "FBSD Questions" Subject: RE: Dos -> Unix end-of-line conversion Date: Tue, 25 Dec 2001 21:15:37 -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: <3C28C0EE.BC8EDFE4@hauan.org> 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 I want to roll the /etc/ tree files with all kinds of txt files but text in content only, not in file names, and convert them in mass on there way to the floppy drive that's going to a windows sys. How can I do this on the command line? -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Dave Sent: Tuesday, December 25, 2001 1:10 PM To: Joe & Fhe Barbish Cc: Jonathan Chen; FBSD Questions Subject: Re: Dos -> Unix end-of-line conversion Joe & Fhe Barbish wrote: > > 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. > unix2dos *.txt will do all textfiles. If you can't see it with less or more vi will show you. dave 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