Xref: utzoo comp.sources.wanted:9808 alt.sources.wanted:87 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!genbank!ames!pasteur!helios.ee.lbl.gov!ucsd!hub!6600pete From: 6600pete@hub.UUCP Newsgroups: comp.sources.wanted,alt.sources.wanted Subject: Re: Backwards cat Message-ID: <3324@hub.UUCP> Date: 16 Dec 89 00:05:06 GMT References: <6488@lindy.Stanford.EDU> Sender: news@hub.UUCP Distribution: usa Lines: 24 From article <6488@lindy.Stanford.EDU>, by odin@ucscb.UCSC.EDU (Jon Granrose): > 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. ...and the fourth answer... TAIL(1) USER COMMANDS TAIL(1) NAME tail - display the last part of a file SYNOPSIS tail +|-number [ lbc ] [ fr ] [ filename ] OPTIONS r Copy lines from the end of the file in reverse order. The default for r is to print the entire file in reverse order. ------------------------------------------------------------------------------- Pete Gontier | InterNet: 6600pete@ucsbuxa.ucsb.edu, BitNet: 6600pete@ucsbuxa Editor, Macker | Online Macintosh Programming Journal; mail for subscription Hire this kid | Mac, DOS, C, Pascal, asm, excellent communication skills