[comp.sources.misc] Patch to 'dusort' so the disk-space-used figures come in a nice column

drw@culdev1.UUCP (Dale Worley) (10/05/87)

This patch changes the output from dusort from:

19067	      /drw
3595	          /gcc
2968	              /gcc-1.7
2197	          /ispell
370	                 /dist

to

   19071	/drw
    3595	    /gcc
    2968	        /gcc-1.7
    2197	    /ispell
     370	           /dist
The patch is:

*** dusort	Wed Sep 23 10:47:52 1987
--- dusort1	Wed Sep 23 10:47:46 1987
***************
*** 37,43 ****
  
  #just print the path and its size. In two popular flavors.
  awk '{if('$TFORM') printf "%s(%d)\n", $1, $NF; else
! 		   printf "%d\t%s\n", $NF, $1}' |
  
  #indent directories
  # This awk could be combined with the previous one
--- 37,43 ----
  
  #just print the path and its size. In two popular flavors.
  awk '{if('$TFORM') printf "%s(%d)\n", $1, $NF; else
! 		   printf "%8d\t%s\n", $NF, $1}' |
  
  #indent directories
  # This awk could be combined with the previous one

Dale