Subject: bin/34220: feature request: --max-depth for du
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <tspivey@pcdesk.net>
List: netbsd-bugs
Date: 08/17/2006 06:20:01
>Number:         34220
>Category:       bin
>Synopsis:       feature request: --max-depth for du
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 17 06:20:00 +0000 2006
>Originator:     Tyler Spivey
>Release:        current
>Organization:
N/A
>Environment:
NetBSD kanadio.hn 4.99.1 NetBSD 4.99.1 (KANADIO) #0: Tue Aug 15 22:16:56 PDT 2006  root@kanadio.hn:/usr/src/sys/arch/i386/compile/KANADIO i386
>Description:
I would like an option added to du(1) that simulates GNU's --max-depth option.
this way, an alias like this would be possible:
alias bigdirs='du --max-depth=1 2>/dev/null | sort -n | tail'

FreeBSD has this as -d.
>How-To-Repeat:
N/A
>Fix: