I have this code
#!/bin/bash
read num
sum=0
i=1
while [$i -le $num]; do
let sum=$sum+1
let i=$i+1
done
echo $sum
I am getting the error ./test: line 5: [1: command not found , but I am not sure what part of this is wrong and can not be found.