#!/bin/tcsh

set dirname=$argv[1]

foreach file ($dirname/*)
   if -d $file then 
      echo  "DIR $file"
   else
      if -z $file then
         echo "ZERO $file"
      else
         echo "FILE $file"
      endif
   endif
end
