From owner-freebsd-questions@FreeBSD.ORG Sat Apr 2 14:20:42 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 794CD1065673 for ; Sat, 2 Apr 2011 14:20:42 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from server.cwis.biz (70-89-202-5-invergrove-mn.hfc.comcastbusiness.net [70.89.202.5]) by mx1.freebsd.org (Postfix) with ESMTP id 4DB268FC08 for ; Sat, 2 Apr 2011 14:20:42 +0000 (UTC) Received: from server.cwis.biz (localhost [127.0.0.1]) by server.cwis.biz (Postfix) with ESMTP id 021DA264BE5F for ; Sat, 2 Apr 2011 09:21:38 -0500 (CDT) X-Virus-Scanned: amavisd-new at cwis.biz Received: from server.cwis.biz ([127.0.0.1]) by server.cwis.biz (server.cwis.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SL1XolqyCwZN for ; Sat, 2 Apr 2011 09:21:25 -0500 (CDT) Received: from [10.0.1.198] (70-89-202-1-invergrove-mn.hfc.comcastbusiness.net [70.89.202.1]) by server.cwis.biz (Postfix) with ESMTPSA id 16886264BE61 for ; Sat, 2 Apr 2011 09:21:25 -0500 (CDT) From: Ryan Coleman Date: Sat, 2 Apr 2011 09:20:27 -0500 Message-Id: <0DD2BF5C-7387-4AFA-BF43-B1683F3773E8@d3photography.com> To: FreeBSD Mailing List Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 14:20:42 -0000 I found this command: ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ = /' -e 's/-/|/'=20 Which makes this: |-Mar17 |---1300074369-chow |-----download |-------small |---1300421616-Cunningham |-----download |-------small But I want to use `du` instead to convert this 2.0M ./Mar17/1300074369-chow/download/small 2.0M ./Mar17/1300074369-chow/download 2.0M ./Mar17/1300074369-chow 2.1M ./Mar17/1300421616-Cunningham/download/small 2.1M ./Mar17/1300421616-Cunningham/download 2.1M ./Mar17/1300421616-Cunningham 4.1M ./Mar17 into this: |-Mar17 [4.3M] |---1300074369-chow [2.0M] |-----download [2.0M] |-------small [2.0M] |---1300421616-Cunningham [2.1M] |-----download [2.1M] |-------small [2.1M] I realize it does it backwards and I can live with that... OR mix the = two to run the first command and run another command to get the folders = total size or something... you know? Thanks for the help, Ryan=