From owner-freebsd-questions@FreeBSD.ORG Sat Apr 2 17:34:21 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98F55106564A for ; Sat, 2 Apr 2011 17:34:21 +0000 (UTC) (envelope-from mike.jeays@rogers.com) Received: from smtp101.rog.mail.re2.yahoo.com (smtp101.rog.mail.re2.yahoo.com [206.190.36.79]) by mx1.freebsd.org (Postfix) with SMTP id 369438FC1F for ; Sat, 2 Apr 2011 17:34:20 +0000 (UTC) Received: (qmail 39639 invoked from network); 2 Apr 2011 17:07:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=KB4fTWUbkpo9jGvSFpWqK02v9HrqrCylPOKcoFN6U5MaV8wAf+jF3qVluyOn2mXwhFPf82/DBiEPMcgwdF7e46rt68XqqNZ1ogyy1FTK4vQGG4mAKbTmAYucgqpjgcyH3K2yI8CAPyY65Y0Q9YGD6zoR2kMgso2K99uUh5B1APA= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s1024; t=1301764060; bh=IqNORL//ZNyh4CG91wilMmqGpTlmvu9cRkmYffopGPE=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=SjRORJ34jd1gHcnvscCqAwQNxhtTACNuYKXWuQz59cm9HX05zorKr7BtQ2c65nqYMeWaxUAoYAGxa3Ew6eDzFEwNmAxY4ZvCxuGqUEVFucnpgnTSHSOv0VJE6AohtRZXZChjrvfFVeHrsHCpuKYqwGR+L1xuEc3Sk+VK6TSQ2tE= Received: from napoleon (mike.jeays@99.224.68.113 with login) by smtp101.rog.mail.re2.yahoo.com with SMTP; 02 Apr 2011 10:07:40 -0700 PDT X-Yahoo-SMTP: N82WFx6swBBjwcHWPFR2CGt6udzA8RPrA.xm0enFFXaK2g-- X-YMail-OSG: Mwclr_gVM1lfDaZiNwEAI5_7stAjIvtId9yY294rMX1PbZX gQhh7lSWHyB7B6OyVYG.te982xE083x2ReEFXgAh5BD0G46wQolmvognc5B5 Cu4mdbal0Wclzg.vaR0WexyhYg1GzLJmgG4WY_L8NwWqCBb7gsHmX7Zf7R4v XpiK2OYdickl8JV2..kFArLxsnh9xCj7jNAwHvSX6Z_9YKXcrPO3u6WfAFYM bjp_RNiVGUm4KWCB_laocTcyUoXhXvvHf14sxZAQQCdj9pLaUPIjBSHLMAsO JDGIfOlgTEK3PzmdgD3Rvm6g8CUms4_uqx1zuTCK1F2SORJjdSwVA5wCgoGM - X-Yahoo-Newman-Property: ymail-3 Date: Sat, 2 Apr 2011 13:07:39 -0400 From: Mike Jeays To: freebsd-questions@freebsd.org Message-ID: <20110402130739.4253ea30@napoleon> In-Reply-To: References: <0DD2BF5C-7387-4AFA-BF43-B1683F3773E8@d3photography.com> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: utisoft@gmail.com Subject: Re: graphical representation of `du` X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2011 17:34:21 -0000 On Sat, 2 Apr 2011 17:15:04 +0100 Chris Rees wrote: > du -h . | awk '{a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--] }' | > awk '{print($2" ["$1"]");}' | sed -e 's,[^-][^/]*/,--,g' -e 's,^,|,' I confess to being impressed...