#!/bin/csh

# Skript mndir - number of files in dir
set num = `mmdir | wc -l`
echo 'Directory ' `pwd` ' has ' $num ' files'
foreach i  (*)
  if (-d $i) then
    cd $i
    mndir
    cd ..
  endif
end
