2014-01-06 31 views

回答

5

您需要使用bash運行,因此使用bash家當:

#!/bin/bash 

由於這arithmetic BASH loop syntaxolder bourne shell支持:

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