Shell/Bash 变量/variable 循环/loop

如何在bash脚本里面进行循环

#!/bin/bash
n=9999

for(( i =1; i<=100;i++))
do
    /root/testProgram $n
    sleep 5
    n=$((n+1))
done

REFER: How to increment a variable in bash?

posted @ 2016-10-20 11:15  xiulug  阅读(675)  评论(0编辑  收藏  举报