#!/bin/rc switch($#*){ case 2 /bin/chmod $1 `{/bin/du -a $2 | /bin/awk '{print $2}'} case * /bin/echo 'usage: chmod option dir' }