solaris: newbee starts scripting
Hi, currently I am playing with the solaris system running bash as shell.
putting the following lines in VI gives me the following error:
SCRIPT
for (( i=1; i<=5; i++ ))
do
for (( j=1; j<=i; j++ ))
do
echo -n " *"
done
echo ""
done
ERROR
./stars: line 1: syntax error near unexpected token `(('
./stars: line 1: `For (( i=1; i<=5; i++ ))'
Started with ./[file], sh [file] but cannot get it running. What to do to get it running?
Cheers
|