Hello,
I have a question on shell scripting korn shell.
I have a small script as follows
for ((i=0; i <= 5 ; i++))
do
echo "Welcome $i times"
done
As I run this script I get the following error
./test.sh: 0403-057 Syntax error at line 1 : `(' is not expected.
Whatever I change the same error appears again and again.
Please tell me if this kind of loop is supported in ksh and bash since it gives the same error in both the shells.
Hello,
Thanks a lot.
I knew that I could do it with while and also by giving the numbers in for loop.
I actually want to know if I can do it the way that I have specified.