运维网's Archiver
论坛
›
Shell/Powershell
› 看下Shell代码样式
yzc164
发表于 2018-8-23 12:32:48
看下Shell代码样式
#!/bin/bash
key=s11
pid=$(ps -ef|grep socket|grep $key|grep -v grep |awk '{print $2}')
for p in $pid
do
kill -9 $p
done
exit 0
页:
[1]
查看完整版本:
看下Shell代码样式