From owner-freebsd-questions Wed Mar 25 03:14:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA20791 for freebsd-questions-outgoing; Wed, 25 Mar 1998 03:14:42 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.cityip.co.za (ns.cityip.co.za [196.25.223.140]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA20781 for ; Wed, 25 Mar 1998 03:14:34 -0800 (PST) (envelope-from wjv@cityip.co.za) Received: from wjv by ns.cityip.co.za with local (Exim 1.82 #2) id 0yHo6q-0004wk-00; Wed, 25 Mar 1998 13:12:40 +0200 Subject: Re: btw - ^M In-Reply-To: <199803242158.LAA12307@rocksalt.mui.net> from "ken@mui.net" at "Mar 24, 98 11:57:17 am" To: ken@mui.net Date: Wed, 25 Mar 1998 13:12:40 +0200 (SAT) Cc: freebsd-questions@FreeBSD.ORG X-PGP: ftp://ftp.cityip.co.za/users/wjv/pubkey.asc X-URL: http://www.cityip.co.za/~wjv/ X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Johann Visagie Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ken@mui.net wrote: > > um ... btw - is there an easy way to strip away the carriage returns > (^M) from text files on the dos side? Doing it manually is okay for > short stuff, but long files ...painful... Many ways. For instance: #!/usr/bin/perl -pi s/\r\n/\n/; s/\032$//; -- V Johann Visagie | Email: wjv@CityIP.co.za | Tel: +27 21 419-7878 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message