Bash 'for' loop syntax?

前端 未结 3 1428
面向向阳花
面向向阳花 2021-02-19 23:45

What is the syntax for a Bash for loop?

I have tried:

for (($i=0;$i<10;$i ++))
do
    echo $i
done

I get this error:

3条回答
提交回复
热议问题