Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!irwin From: irwin@m.cs.uiuc.edu Newsgroups: comp.sources.wanted Subject: Re: Backwards cat Message-ID: <7100014@m.cs.uiuc.edu> Date: 15 Dec 89 22:47:00 GMT References: <6488@lindy.Stanford.EDU> Lines: 29 Nf-ID: #R:lindy.Stanford.EDU:6488:m.cs.uiuc.edu:7100014:000:1146 Nf-From: m.cs.uiuc.edu!irwin Dec 15 16:47:00 1989 /* Written 2:12 am Dec 15, 1989 by odin@ucscb.UCSC.EDU in m.cs.uiuc.edu:comp.sources.wanted */ /* ---------- "Backwards cat" ---------- */ >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. >Thanks >Jon -- _____________________________________________________________________________ |Jon Granrose |ARPA: odin@ucscb.UCSC.EDU jonathan@sco.com | // Only | |Cowell College, UCSC| 74036.3241@compuserve.com |\X/ Amiga!| |Santa Cruz, CA 95064|UUCP:..!ucbvax!ucscc!ucscb!odin Bitnet:odin@ucscb.bitnet| | "Remember! No matter where you go, there you are." - B. Banzai | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /* End of text from m.cs.uiuc.edu:comp.sources.wanted */ It sounds like you could use the LESS utility to do what you want. It is mentioned in this forum in another thread. Al Irwin Univ of Illinois Dept of Comp Sci irwin@m.cs.uiuc.edu