bash重复执行命令n次

for n in {1..10}; do echo 'hello'; sleep 1; done

其中sleep 1;睡眠1秒钟非必须。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注