2014-01-06 51 views

回答

5

您需要使用bash运行,因此使用bash家当:

#!/bin/bash 

由于这arithmetic BASH loop syntaxolder bourne shell支持:

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