Date: Wed, 25 Mar 1998 13:12:40 +0200 (SAT) From: Johann Visagie <wjv@cityip.co.za> To: ken@mui.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: btw - ^M Message-ID: <E0yHo6q-0004wk-00@ns.cityip.co.za> In-Reply-To: <199803242158.LAA12307@rocksalt.mui.net> from "ken@mui.net" at "Mar 24, 98 11:57:17 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0yHo6q-0004wk-00>