Re: [9fans] union directories exploration

2012-09-19 Thread Bakul Shah
Thanks! On Wed, 19 Sep 2012 08:47:33 +0200 cinap_len...@gmx.de wrote: > this has been done before. i can't remember who wrote it > and i couldnt find it in the contrib index. > > #!/bin/rc > > fn get_dirs { > tmp = /tmp/$pid ^_dirs > echo -n > $tmp > > for (f in `{du -nf $roo

Re: [9fans] union directories exploration

2012-09-18 Thread cinap_lenrek
this has been done before. i can't remember who wrote it and i couldnt find it in the contrib index. #!/bin/rc fn get_dirs { tmp = /tmp/$pid ^_dirs echo -n > $tmp for (f in `{du -nf $root_in | awk '{print $2}' }) ls -l $f | grep '^d' | awk '{print $10}' >