From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <8fb44c5359889dbe523888b5451eeb4c@brasstown.quanstro.net> References: <20150930080111.F04E81103EBE@mac.korb> <8fb44c5359889dbe523888b5451eeb4c@brasstown.quanstro.net> Date: Wed, 30 Sep 2015 09:57:26 -0500 Message-ID: From: Steven Stallion To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] Replacement for find Topicbox-Message-UUID: 6ddf920c-ead9-11e9-9d60-3106f5b1d025 Somewhat late to the party, but I use the following in my profile: fn find {du -a $* |awk '{print $2}'} http://plan9.bell-labs.com/sources/contrib/stallion/profile On Wed, Sep 30, 2015 at 8:20 AM, erik quanstrom wrote: > 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 >