Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!wuarchive!usc!cs.utexas.edu!asuvax!ncar!boulder!morfeq From: morfeq@boulder.Colorado.EDU (Ali H. Morfeq) Newsgroups: comp.sources.wanted Subject: Re: Backwards cat Message-ID: <14945@boulder.Colorado.EDU> Date: 16 Dec 89 01:12:43 GMT References: <6488@lindy.Stanford.EDU> <5360@omepd.UUCP> Sender: news@boulder.Colorado.EDU Reply-To: morfeq@boulder.Colorado.EDU (Ali H. Morfeq) Distribution: usa Organization: University of Colorado, Boulder Lines: 17 there is procedure written in C in the book : "Advanced Unix programming' by Marc J. Rochkind, Prentice-Hall 1985. It is in section 2.11. it is exactley what you described. It takes a file name and output the file in reverse order of lines. for example: if file : dog bites man then it will produce: man bites dog morfeq@boulder.colorado.edu