Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!itsgw!steinmetz!vdsvax!lorensen From: lorensen@dwaskill.stars.flab.Fujitsu.JUNET (Bill Lorensen) Newsgroups: comp.unix.questions Subject: Re: sorting and reversing lines of a file Message-ID: Date: 30 Jan 89 12:58:15 GMT References: <9056@burdvax.PRC.Unisys.COM> <936@philmds.UUCP> Sender: news@vdsvax.steinmetz.ge.com Distribution: usa Organization: Fujitsu Laboratories Ltd., Kawasaki, Japan. Lines: 16 In-reply-to: leo@philmds.UUCP's message of 27 Jan 89 12:24:22 GMT How about: grep -n . file | sort -r | sed -e 's/^.*://' Of course, as leo@philmds.UUCP (Leo de Wit) said: tail -r file does the trick nicely. -- Bill Lorensen US Mail:GE Corporate Research and Development P.O. Box 8 Bldg KW Room C207A Schenectady, NY 12301 Office: (518) 387-6744 or 8*833-3874 Fax: (518) 387-6560 or 8*833-6560 E-Mail: lorensen@ge-crd.arpa lorensen@crd.steinmetz.ge.com