From owner-freebsd-doc Mon Mar 15 2: 9:43 1999 Delivered-To: freebsd-doc@freebsd.org Received: from shell.futuresouth.com (shell.futuresouth.com [198.78.58.28]) by hub.freebsd.org (Postfix) with ESMTP id B19741511E for ; Mon, 15 Mar 1999 02:09:38 -0800 (PST) (envelope-from fullermd@futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.9.3/8.9.3) id EAA19497; Mon, 15 Mar 1999 04:09:17 -0600 (CST) Date: Mon, 15 Mar 1999 04:09:17 -0600 From: "Matthew D. Fuller" To: Byron Brummer Cc: "G. Adam Stanislav" , freebsd-doc@FreeBSD.ORG Subject: Re: Converting text files Message-ID: <19990315040916.G25217@futuresouth.com> References: <3.0.6.32.19990315024432.007cf9a0@mail.bfm.org> <199903150915.BAA11814@thrush.omix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199903150915.BAA11814@thrush.omix.com>; from Byron Brummer on Mon, Mar 15, 1999 at 01:15:11AM -0800 X-OS: FreeBSD Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Mar 15, 1999 at 01:15:11AM -0800, a little birdie told me that Byron Brummer remarked > > One of the reasons for the inclusion of the perl command is that it > automatically saves a backup file of the original, thus helping to > prevent disaster. Another reason is that it gets people a little > more familiar with perl in general. The command given in the > handbook is: > > perl -i.bak -npe 's/\r\n/\n/g' file Hm, maybe it's just me, but I always... cat infile | tr '\r' ' ' > outfile --- *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | Matthew Fuller http://www.over-yonder.net/~fullermd | * fullermd@futuresouth.com fullermd@over-yonder.net * | UNIX Systems Administrator Specializing in FreeBSD | * FutureSouth Communications ISPHelp ISP Consulting * | "The only reason I'm burning my candle at both ends, | * is because I haven't figured out how to light the * | middle yet" | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message