#!/bin/csh -f
#From C-Shell Guide by Anderson and Anderson
#usage: numfiles [directory]
#This version adds the call to sed.

if ($#argv == 0) then
	set dir = "."
else
	set dir = $argv[1]
endif
echo -n Number of files/directories in $dir\:
ls $dir | wc -l | sed 's/  */ /'
