标签:for
for i in ...;do
> action
> done
例如:
[root@localhost tmp]# for i in $(ps -ef | grep 1.sh | awk ‘{print $2}‘);do
> kill $i
> done
也可以直接一条命令:
# for i in $(ps -ef | grep 1.sh | awk ‘{print $2}‘);do kill $i; done
本文出自 “汪立明” 博客,请务必保留此出处http://afterdawn.blog.51cto.com/7503144/1922728
标签:for
原文地址:http://afterdawn.blog.51cto.com/7503144/1922728