From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] find(1) revisited. From: Fco.J.Ballesteros MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Mon, 4 Nov 2002 09:54:58 +0100 Topicbox-Message-UUID: 14498832-eacb-11e9-9e20-41e7f4b1d025 This happen before, but just to help, this is what i use. It's just du, wrapped to operate on your files. For example, to walk /usr/nemo to find files with execute permission: ; walk /usr/nemo 'test -x $f && echo $f' you can pass any command and use $f where you want the file name. #!/bin/rc rfork e if (~ $#* 0) { echo 'usage: walk file [cmd...]' >[1=2] exit usage } file=$1 shift if (~ $#* 0) cmd='echo $f' if not cmd=$* cd `{basename -d $file} exec du -a $file | awk '{print $2}' | while (f=`{read}) { eval $cmd }