shell pipeline to reverse the order of lines.
Brandon S. Allbery KB8JRR
allbery at NCoast.ORG
Tue Feb 26 13:59:03 AEST 1991
As quoted from <2166 at m1.cs.man.ac.uk> by mario at cs.man.ac.uk (Mario Wolczko):
+---------------
| > In <9102151917.AA04419 at wendy-fate.UU.NET> kyle at UUNET.UU.NET (Kyle Jones):
| > After seeing a couple of programs in Perl and Icon to do this, I
| > feel compelled to post a shell pipeline solution to this problem.
|
| Pass\'e solution, man. Try this:
| ed - file <<\x
| g/^/m0
| w
| q
| x
+---------------
I don't understand what's wrong with
nl | sort -nr | cut -f2-
I use this about twice a month. Scripts? We don't need no steenking scripts!
++Brandon
--
Me: Brandon S. Allbery VHF/UHF: KB8JRR on 220, 2m, 440
Internet: allbery at NCoast.ORG Packet: KB8JRR @ WA8BXN
America OnLine: KB8JRR AMPR: KB8JRR.AmPR.ORG [44.70.4.88]
uunet!usenet.ins.cwru.edu!ncoast!allbery Delphi: ALLBERY
More information about the Alt.sources.d
mailing list