Subject: bin/34220: feature request: --max-depth for du
To: None <,>
From: None <>
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
NetBSD 4.99.1 NetBSD 4.99.1 (KANADIO) #0: Tue Aug 15 22:16:56 PDT 2006 i386
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.