Date: Mon, 15 Mar 1999 04:09:17 -0600 From: "Matthew D. Fuller" <fullermd@futuresouth.com> To: Byron Brummer <byron@omix.com> Cc: "G. Adam Stanislav" <zen@buddhist.com>, freebsd-doc@FreeBSD.ORG Subject: Re: Converting text files Message-ID: <19990315040916.G25217@futuresouth.com> In-Reply-To: <199903150915.BAA11814@thrush.omix.com>; from Byron Brummer on Mon, Mar 15, 1999 at 01:15:11AM -0800 References: <3.0.6.32.19990315024432.007cf9a0@mail.bfm.org> <199903150915.BAA11814@thrush.omix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990315040916.G25217>