# Skript suma set n = $argv[1] set i = 1 set sum = 0 while ($i <= $n) @ sum += $i @ i++ end echo 'Soucet je '$sum
# Skript mmdir foreach i (*) echo $i end
# Skript msdir foreach i (*) if (-d $i) then echo 'Directory ' $i cd $i msdir cd .. else echo $i endif end
# 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
# Skript mtree - dir tree if ($#argv == 0) then set ind = 0 else set ind = $argv[1] endif set str = '' set j = 0 while ($j < $ind) # echo $j set str = "\040"$str @ j++ end @ ind++ foreach i (*) if (-d $i) then echo $str $i cd $i mtree $ind cd .. endif end