home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: 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
-
- ! 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
-