Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Your script must check for the correct number of arguments (one argument). If somebody tries to invoke the script without passing in the correct number of arguments, then output this usage message: Usage: assignment4.sh <directory_name>
2. Relevant commands, code, scripts, algorithms:
I know it should be an if statement of some sort.
3. The attempts at a solution (include all code and scripts):
I have this written to check to see if the file is a directory or not, does this also check for the number of arguments?
file=$1
if [ ! -d $file ]
then
echo "$file: is not a directory"
fi
exit
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Florida State, Myers, COP3353
COP 3353
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).