#!/bin/rc if (! ~ $1 '' && test -d $1) { for(i in `{du -a $1 | awk '{print $2}'}) chmod u+w $i rm -rf $1/* }