使用C语言风格的for命令

5年以前  |  阅读数:473 次  |  编程语言:Shell 
#!/bin/bash
#testing the C-style for loop

for (( i=1; i<=10; i++ ))
do
    echo "The next number is $i"
done

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8