home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!decwrl!csus.edu!netcomsv!mork!messina
- From: messina@netcom.com (Tony Porczyk)
- Subject: Re: Sort problem . .
- Message-ID: <zynm!yh.messina@netcom.com>
- Date: Wed, 29 Jul 92 16:35:53 GMT
- Organization: Messina Software
- References: <1992Jul27.123415.977@leland.Stanford.EDU>
- Lines: 19
-
- peer@ccrma.stanford.edu (Peer Landa) writes:
-
- >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 ?
-
- Seems to me like the simplest solution would be to change line 725 in ps.c
- (maybe somewhere else in your source) from:
-
- printf("%s COMMAND\n", hdr);
-
- to:
-
- fprintf(stderr, "%s COMMAND\n", hdr);
-
- and recompile it.
-
- t.
-