Article View: comp.unix.shell
Article #176Re: Sort problem . .
From: Harald.Eikrem
Date: Tue, 28 Jul 1992 22:31
Date: Tue, 28 Jul 1992 22:31
9 lines
786 bytes
786 bytes
! This does seem to work:
!
! ps axu | (read line; echo "$line"; sort +3rn)
Yeah, nice for {,k,z,ba}sh. Why not simply
ps aux | ( line; sort -rn +3 )
~~h
Technical Details
Message-ID:
<1992Jul28.223113*Harald.Eikrem@delab.sintef.no>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ugle.unit.no!newsReferences:
<1992Jul27.123415.977@leland.Stanford.EDU> <1992Jul27.140110.846@news.eng.convex.com> <1992Jul28.095415.4640@prl.dec.com> <1992Jul28.102938.12375@news.eng.convex.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ugle.unit.no!news From: Harald.Eikrem@delab.sintef.no Subject: Re: Sort problem . . In-Reply-To: Tom Christiansen's message of Tue, 28 Jul 1992 10:29:38 GMT Message-ID: <1992Jul28.223113*Harald.Eikrem@delab.sintef.no> Sender: news@ugle.unit.no (NetNews Administrator) Organization: SINTEF DELAB, Trondheim, Norway. References: <1992Jul27.123415.977@leland.Stanford.EDU> <1992Jul27.140110.846@news.eng.convex.com> <1992Jul28.095415.4640@prl.dec.com> <1992Jul28.102938.12375@news.eng.convex.com> Date: 28 Jul 92 22:31:13 Lines: 9