Path: utzoo!utgpu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!mcsun!ukc!mucs!cs.man.ac.uk!mario From: mario@cs.man.ac.uk (Mario Wolczko) Newsgroups: alt.sources.d Subject: Re: shell pipeline to reverse the order of lines. Message-ID: <2193@m1.cs.man.ac.uk> Date: 27 Feb 91 12:16:12 GMT References: <1991Feb15.164342.4552@midway.uchicago.edu> <9102151917.AA04419@wendy-fate.UU.NET> <1991Feb19.132703.21495@newcastle.ac.uk> Sender: news@cs.man.ac.uk Reply-To: mario@cs.man.ac.uk (Mario Wolczko) Organization: Department of Computer Science, University of Manchester Lines: 24 In article <1991Feb19.132703.21495@newcastle.ac.uk>, A.C.G.Saunders@newcastle.ac.uk (Aidan Saunders) writes: > > I missed the start of this thread, but if the subject line is still > relevant (:-)), how about using tail -r > > ie: > tail -r filename > > or if it needs to be on the end of a pipe: > > ... | tail -r > > Works OK in SunOS 4.1 Restriction: the maximum buffer size is 32Kb. Try tail -r file|tail -r|cmp - file on a long file. Mario ______ Dept. of Computer Science Internet: mario@cs.man.ac.uk /~ ~\ The University uucp: mcsun!ukc!man.cs!mario ( __ ) Manchester M13 9PL JANET: mario@uk.ac.man.cs `-': :`-' U.K. Tel: +44-61-275 6146 (FAX: 6280) ____; ;_____________the mushroom project___________________________________