Write a script to count and report the number of entries present in each subdirectory mentioned in the path, which is supplied as a command-line argument.
if [ $# -eq 0 ] then echo "Enter path : " read path else path=$1 fi for dir in `ls -R $path` doif [ -e $dir ] then vcount=`expr $vcount+1` echo $dir fi done echo "There is $vcount file"