Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!uwvax!umn-d-ub!umn-cs!nis!quad!dts From: dts@quad.uucp (David T. Sandberg) Newsgroups: comp.unix.questions Subject: Re: Reversing a file? Message-ID: <298@quad.uucp> Date: 3 Oct 89 21:01:29 GMT References: <1989Oct3.041122.28028@ctr.columbia.edu> Reply-To: dts@quad.uucp (David T. Sandberg) Organization: Quadric Systems, Richfield MN Lines: 20 In article <1989Oct3.041122.28028@ctr.columbia.edu> seth@ctr.columbia.edu (Seth Robertson) writes: :In article (Skip Montanaro) writes: :>Does somebody have an elegant shell script for reversing the lines of a :>file? : : tail -r On what system? Tail doesn't have an -r switch on any of the Sys V machines I have access to. Besides, based on the default behavior of tail, this would only affect the last ten lines. (of course, the mythical "-r" flag could alter that behavior, I guess) >Anything else you want? How about something everyone can make use of? -- David Sandberg - Quadric Systems "I began neglecting my shoes." PSEUDO: dts@quad.uucp ACTUAL: ..uunet!rosevax!sialis!quad!dts