From owner-freebsd-questions Tue Dec 3 14:54:14 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 4297037B401 for ; Tue, 3 Dec 2002 14:54:13 -0800 (PST) Received: from wonkity.com (wonkity.com [63.93.4.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8530943E4A for ; Tue, 3 Dec 2002 14:54:12 -0800 (PST) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost.wonkity.com [127.0.0.1]) by wonkity.com (8.12.1/8.11.6) with ESMTP id gB3MsBuF012125; Tue, 3 Dec 2002 15:54:11 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.1/8.12.1/Submit) with ESMTP id gB3MsBrn012122; Tue, 3 Dec 2002 15:54:11 -0700 (MST)?g (envelope-from wblock@wonkity.com) Date: Tue, 3 Dec 2002 15:54:11 -0700 (MST) From: Warren Block To: Lee J Carmichael Cc: Thomas von Hassel , 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 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