From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) From: Wolfgang Helbig In-Reply-To: Date: Wed, 30 Sep 2015 11:33:30 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <5F9B8349-6B7F-4213-84FF-50D65B5159E6@mailbox.org> References: <20150930080111.F04E81103EBE@mac.korb> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Replacement for find Topicbox-Message-UUID: 6d7e69dc-ead9-11e9-9d60-3106f5b1d025 In Plan 9 a command is needed, that lists recursively all files. Not = more and not less. The du(1) command offers too much. I do not want to = list the disk usage! The command du(1) from the second edition of plan9 only has two command = line options (-a and -b size), whereas du(1) from http://github.com/0intro/plan9 offers twelve options and from=20 http://github.com/9fans/plan9port (aka Plan 9 from User Space) eight options. All three distributions come w/o the man page. The Second Edition seems closest to what is needed =E2=80=94 A du -a = without the disk usage. Lets call it recurse(1). Its man page reads: NAME: recurse - list recursively the file names SYNOPSIS: recurse name =E2=80=A6 DESCRIPTION For each directory argument print recursively the filenames in = the directory, for each filename argument, repeat the filename. SEE ALSO: ls(1) What do you think of it? With this, du(1) can be simplified by printing the disk usage of its = arguments only. Greetings, Wolfgang The sizes of the three sources differ tremendously from=20 > Am 30.09.2015 um 10:23 schrieb hiro <23hiro@gmail.com>: >=20 > I'm surprised you can even remember find's command line options. > If you need to optimize this cause you have a jillion files and think > du takes too long i'd suggest creating an index of all files you have, > sorted into a text file. > Then you only have to use grep filename index. >=20