From owner-freebsd-questions Tue Dec 3 14:57: 7 2002 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 DECAA37B404 for ; Tue, 3 Dec 2002 14:56:39 -0800 (PST) Received: from efw1.wamnet.com (efw1.wamnet.com [67.98.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C50A43EAF for ; Tue, 3 Dec 2002 14:56:39 -0800 (PST) (envelope-from lcarmich@wamnet.com) Received: from ndm.wamnet.com ([172.17.38.2]) by efw1.wamnet.com (8.12.2/8.12.2) with ESMTP id gB3MucrF009975; Tue, 3 Dec 2002 16:56:38 -0600 (CST) Received: from ds.cops.wamnet.com (ds.cops.wamnet.com [172.17.31.2]) by ndm.wamnet.com (8.9.1a/8.9.1) with ESMTP id QAA148586; Tue, 3 Dec 2002 16:56:37 -0600 (CST) Received: from y.dev.wamnet.com (y.dev.wamnet.com [172.17.27.37]) by ds.cops.wamnet.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id QAA43693; Tue, 3 Dec 2002 16:56:37 -0600 (CST) Date: Tue, 3 Dec 2002 16:56:37 -0600 (CST) From: Lee J Carmichael X-Sender: lcarmich@y.dev.wamnet.com To: Warren Block Cc: freebsd-questions@FreeBSD.ORG Subject: Re: tool/method to convert DOS line endings to UNIX line endings In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Good point, I pulled it from a script that was doing some additional magic. Lee On Tue, 3 Dec 2002, Warren Block wrote: > On Tue, 3 Dec 2002, Lee J Carmichael wrote: > > > If you are going from DOS to Unix you could use the following perl script: > > [script snipped] > > It's a bit easier if you let Perl do the heavy lifting: > > perl -pi -e 's/\r//g' file-to-convert > > -Warren Block * Rapid City, South Dakota USA > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message