home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume1 / 8710 / 1 next >
Internet Message Format  |  1990-07-13  |  1KB

  1. Path: uunet!husc6!necntc!ncoast!allbery
  2. From: drw@culdev1.UUCP (Dale Worley)
  3. Newsgroups: comp.sources.misc
  4. Subject: Patch to 'dusort' so the disk-space-used figures come in a nice column
  5. Message-ID: <4809@ncoast.UUCP>
  6. Date: 5 Oct 87 00:15:48 GMT
  7. Sender: allbery@ncoast.UUCP
  8. Organization: Cullinet Software, Westwood, MA, USA
  9. Lines: 38
  10. Approved: allbery@ncoast.UUCP
  11. X-Archive: comp.sources.misc/8710/1
  12.  
  13. This patch changes the output from dusort from:
  14.  
  15. 19067          /drw
  16. 3595              /gcc
  17. 2968                  /gcc-1.7
  18. 2197              /ispell
  19. 370                     /dist
  20.  
  21. to
  22.  
  23.    19071    /drw
  24.     3595        /gcc
  25.     2968            /gcc-1.7
  26.     2197        /ispell
  27.      370               /dist
  28. The patch is:
  29.  
  30. *** dusort    Wed Sep 23 10:47:52 1987
  31. --- dusort1    Wed Sep 23 10:47:46 1987
  32. ***************
  33. *** 37,43 ****
  34.   
  35.   #just print the path and its size. In two popular flavors.
  36.   awk '{if('$TFORM') printf "%s(%d)\n", $1, $NF; else
  37. !            printf "%d\t%s\n", $NF, $1}' |
  38.   
  39.   #indent directories
  40.   # This awk could be combined with the previous one
  41. --- 37,43 ----
  42.   
  43.   #just print the path and its size. In two popular flavors.
  44.   awk '{if('$TFORM') printf "%s(%d)\n", $1, $NF; else
  45. !            printf "%8d\t%s\n", $NF, $1}' |
  46.   
  47.   #indent directories
  48.   # This awk could be combined with the previous one
  49.  
  50. Dale
  51.