From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Wed, 30 Sep 2015 06:20:32 -0700 To: 9fans@9fans.net Message-ID: <8fb44c5359889dbe523888b5451eeb4c@brasstown.quanstro.net> In-Reply-To: References: <20150930080111.F04E81103EBE@mac.korb> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Replacement for find Topicbox-Message-UUID: 6dd95158-ead9-11e9-9d60-3106f5b1d025 On Wed Sep 30 01:12:36 PDT 2015, charles.forsyth@gmail.com wrote: > On 30 September 2015 at 09:01, Wolfgang Helbig wrote: > > > But I consider it ugly, to ask for the disk usage if you just want to > > recursively list all files. > > > > It probably is not ideal, even when the circumlocution is hidden in a > script. > Perhaps find's syntax and conventions could be improved, though? 9atom has a relative of andrey's find. it takes very few options. the -d and -D options are not easily duplicated with du. ; man find FIND(1) FIND(1) NAME find - recursively list files. SYNOPSIS find [ -1Ddfq ] dir ... DESCRIPTION List each argument. If the argument is a directory recur- sively list it's contents. The default is to list the cur- rent directory. Specifying -d prints only directories, -D prints only files, -f supresses warnings, while -q supresses quoting the output for rc(1). With -1, mount points will not be traversed. SOURCE /sys/src/cmd/find.c SEE ALSO du(1) BUGS Feeping creaturism. - erik