home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
- From: dattier@ddsw1.mcs.com (David W. Tamkin)
- Subject: Re: Sort problem . .
- Message-ID: <1992Jul27.154336.12503@ddsw1.mcs.com>
- Organization: Contributor Account at ddsw1, Chicago, Illinois 60657
- References: <1992Jul27.123415.977@leland.Stanford.EDU>
- Date: Mon, 27 Jul 1992 15:43:36 GMT
- X-Disclaimer: Material posted in this article is the sole responsibility of
- the poster and does not represent MCSNet or the system owners.
- Lines: 13
-
- peer@ccrma.stanford.edu (Peer Landa) wrote in
- <1992Jul27.123415.977@leland.Stanford.EDU>:
-
- | I'm trying to list & sort all my processes by memory use:
- | alias pss ' ps uax | sort -nr +3'
- | It works fine except for that the "title line" also gets sorted and
- | therefore appears at the bottom . . any idea to avoid this ?
-
- If you don't mind having yet an extra process in the alias, insert
- 'tail +2' into the pipeline betwen the ps and the sort.
-
- David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297
- dattier@ddsw1.mcs.com CompuServe: 73720,1570 MCI Mail: 426-1818
-