Dear Expert,
I try to compile this shell script it give me error
Code:
#!/bin/bash
#set n to 1
n=1
#continue until $n equals 5
while[$n -le 5]
do
echo "Welcome $n times."
n=$(( n+1 )) #increments $n
done
Here is the error shown on terminal
Code:
./while.sh: line 5: while[1 -le 5]: command not found
./while.sh: line 6: syntax error near unexpected token `do'
./while.sh: line 6: `do'