Monday, November 21, 2016

While Loop - Not working

https://www.cyberciti.biz/faq/shell-script-while-loop-examples/


c=1
While [ $c -le 5 ]
do
 echo "Welcome $c times"
 $c=$c+1
done

O/p:
Forloop_example.sh: line 5: While: command not found
: command not found line 6: do
 timese 1
: command not found line 8: 1
: command not found line 9: done

No comments:

Post a Comment