Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!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: Sun, 4-Oct-87 20:15:48 EDT Article-I.D.: ncoast.4809 Posted: Sun Oct 4 20:15:48 1987 Date-Received: Thu, 8-Oct-87 02:47:59 EDT 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