测试需求,需循环执行一个命令,
例1:
# for ((a=1;a<=10;a++)) ; do echo $(du -sh /tmp); done
64K /tmp
64K /tmp
64K /tmp
64K /tmp
64K /tmp
64K /tmp
64K /tmp
64K /tmp
64K /tmp
64K /tmp
例2:
# for ((a=1;a<=10;a+=2)) ; do echo $(du -sh /tmp); done
64K /tmp
64K /tmp
64K /tmp
64K /tmp
64K /tmp