From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Roger Peppe Message-ID: <1015357330.22399.0.nnrp-08.d4f0e306@news.demon.co.uk> Subject: Re: [9fans] GUI toolkit for Plan 9 Date: Wed, 6 Mar 2002 09:50:41 +0000 Topicbox-Message-UUID: 6049a556-eaca-11e9-9e20-41e7f4b1d025 > this should almost be in the FAQ. try "du -a . | grep foo". i've also > found "grep foo `{du -a . | awk '{print $2}'" to be very useful. > variations can reproduce most or all of find. i find the following little shell script saves typing; i use it all the time, e.g. grep '^menuhit' `{find /sys/src/lib* '\.c$'} % cat /bin/find #!/bin/rc if (~ $#* 1 0) { echo 'usage: find ... ' >[1=2] exit usage } a=() while (! ~ $#* 1) { a=($a $1) shift } du -a $a | sed 's/^[^ ]*[ ]//' | grep $1