home *** CD-ROM | disk | FTP | other *** search
- Path: uunet!husc6!necntc!ncoast!allbery
- From: drw@culdev1.UUCP (Dale Worley)
- Newsgroups: comp.sources.misc
- Subject: Patch to 'dusort' so the disk-space-used figures come in a nice column
- Message-ID: <4809@ncoast.UUCP>
- Date: 5 Oct 87 00:15:48 GMT
- Sender: allbery@ncoast.UUCP
- Organization: Cullinet Software, Westwood, MA, USA
- Lines: 38
- Approved: allbery@ncoast.UUCP
- X-Archive: comp.sources.misc/8710/1
-
- 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
-