Path: utzoo!utgpu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!att!cbnewsc!chapin From: chapin@cbnewsc.att.com ( Tom Chapin ) Newsgroups: alt.sources.d Subject: Re: shell pipeline to reverse the order of lines. Message-ID: <1991Feb26.163813.9703@cbnewsc.att.com> Date: 26 Feb 91 16:38:13 GMT References: <2166@m1.cs.man.ac.uk> <1991Feb26.025903.5850@NCoast.ORG> Organization: Hickory Ridge - Lisle, IL Lines: 16 Brandon S. Allbery writes: >I don't understand what's wrong with > nl | sort -nr | cut -f2- NL doesn't automatically number blank lines, so a more bulletproof version would be: nl -ba | sort +0nr -1 | cut -f2- or one might even try: nl -ba | sort +0nr -1 | newform -l1 -b7 -- tom chapin att!hrccb!tjc tjc@hrccb.att.com