#!/bin/csh -f
#!/bin/csh -xvf
setenv COM $0
set path=($path $PWD)
if ( $#argv < 1 ) then
    exit 0
else
   foreach i ($argv)
	if ( -d $i ) then
		@ s++
		echo directory $i
		set n=`ls -a | wc -l`
		if ($n != 2) then
			cd $i	 
			$COM *
			@ s--
			cd ..
		endif
	else
		echo $i
	endif
   end
endif
