Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
- The problem statement, all variables and given/known data:
Create a script called DOTS that will display the horizontal or vertical number of dots if the first argument entered after the dots command will be h or v.
ust use the while statement.
- The attempts at a solution (include all code and scripts):
# Hello
dot=0
while [ $1 -eq "h" -a $dot -lt $2 ]
do
echo "."
dot=`expr $dot + 1`
done
~
This is the error wnen I run the command:
n0-greg@conted:~$ ./dots2 h 6
./dots2: line 4: [: h: integer expression expected
n0-greg@conted:~$ ./dots2 h 6
- Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
John Abbott College, Montreal QC, CANADA, Oswaldo Moreno, Operating Systems UNIX. There is no direct link to the course itself.
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).