Xref: utzoo comp.sources.wanted:9810 alt.sources.wanted:88 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!oliveb!orc!mipos3!omepd!merlyn From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.sources.wanted,alt.sources.wanted Subject: Re: Backwards cat Message-ID: <5360@omepd.UUCP> Date: 15 Dec 89 20:48:00 GMT References: <6488@lindy.Stanford.EDU> Sender: news@omepd.UUCP Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Followup-To: comp.sources.wanted Distribution: usa Organization: Stonehenge; netaccess via Intel, Hillsboro, Oregon, USA Lines: 18 In-reply-to: odin@ucscb.UCSC.EDU (Jon Granrose) In article <6488@lindy.Stanford.EDU>, odin@ucscb (Jon Granrose) writes: | I am looking for a program that will cat a file backwards. Not with all the | letters reversed but one that prints the last line, then the second to last | line, 3 from the last line, etc.) If it doesn't exist then I will write my | own but I thought I'd ask first. Don't write your own... get Perl... perl -e 'print reverse(<>);' Simple, eh? Just another Perl hacker, -- /== Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ====\ | on contract to Intel's iWarp project, Hillsboro, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!uunet!iwarp.intel.com!merlyn | \== Cute Quote: "Welcome to Oregon... Home of the California Raisins!" ==/