Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: sorting and reversing lines of a file Keywords: reverse file Message-ID: <1082@auspex.UUCP> Date: 26 Feb 89 22:41:51 GMT References: <9056@burdvax.PRC.Unisys.COM> <9510@smoke.BRL.MIL> <899@auspex.UUCP> <2585@pegasus.ATT.COM> <1774@dlvax2.datlog.co.uk> <962@philmds.UUCP> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 7 >All you need is a smart cat ( :-); this one will probably do an >fstat(2) (on 1), which not all Unixes (Unices ?) support. What is it that not all UNIXes support? All the ones I know of support "fstat", and both 4.xBSD and S5 (and, as I remember, all versions going back to V7) supported "cat" checking whether its output was the same file as any of its inputs.