One - One Code All

Blog Content

shell 一行写一个for循环

Linux-Mac   2008-08-19 14:15:23

间隔10s查询jour进程,循环10次:

for i in seq 1 10 ;do ps axu|grep jour; sleep 5 ;done



for i in `seq 1 100` ; do curl http://localhost:9200/_cat/health?v;sleep 5 ; done


for x in {1..100};do echo $x;done


上一篇:linux快速重复执行上一条命令
下一篇:linux内存free命令buffer cache作用

The minute you think of giving up, think of the reason why you held on so long.