home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3150 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.1 KB  |  26 lines

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