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:
I am getting the following error while executing for while loo:
count: command not found
[: -le: unary operator expected
- Relevant commands, code, scripts, algorithms:
I have created the following code lines:
#!/bin/sh
count =1
while [ $count -le 10 ]
do
echo $count
count = `expr $count + 1`
done
- The attempts at a solution (include all code and scripts):
Wrote the above code.
- Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Amity, Noida, India, Prof. Sanjeev Thakur, MCA
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).