<<< Solution for Question #1 >> #!/bin/bash if [ $# -ne 1 ] then echo "USAGE: $0 [dir-name]" >&2 exit 1 fi if [ ! -d $1 ] then echo "Error, directory pathname \"$1\" is not valid" >&2 exit 1 fi firstArg=$1 set $(ls -a $1) echo "The total number of files in \"$firstArg\" is: $#" << Solution for Question #2 >> #!/bin/bash dirpathname=$1 if [ $# -ne 1 ] then echo "USAGE: $0 [dir-name]" >&2 exit 1 fi if [ ! -d $1 ] then echo "Error, directory pathname \"$1\" is not valid" >&2 exit 1 fi set $(ls -a $1) echo "The total number of files in \"$dirpathname\" is : $#" << Solution for Question #3 >> Standard Output is: $* 0 Yippee!Boo! Done! `