home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!news
- From: peer@ccrma.stanford.edu (Peer Landa)
- Subject: Re: Sort problem . .
- Message-ID: <1992Jul29.160600.9623@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: DSO, Stanford University
- References: <1992Jul29.072924*Harald.Eikrem@delab.sintef.no>
- Date: Wed, 29 Jul 92 16:06:00 GMT
- Lines: 12
-
-
- It seems like this is getting out of hand, or drifting away from my original
- posting . . where I asked to get a command line (or script) to list & sort all
- my processes by memory use without getting the "title line" on the bottom --
- i.e the "title line" shall stay at the top (that's why 'ps uax | sort -nr +3'
- doesn't work). One way to do this (thanks to Erick Rudiak) is:
- TITLELINE=`ps aux | head -1`
- echo "$TITLELINE"
- ps -aux | grep -v PID | sort -rn +3
-
- -- peer
-
-