#!/bin/csh -f
#syntax:    chall OWNER file1 [ ... ]
set OWNER=$1
shift
foreach i ($argv)
   /etc/chown $OWNER $i
   if ( -d $i ) then
    echo $i is a directory
    /etc/chall $OWNER $i/*  $i/.[^.]*
   endif
end
