shell for循环输出的结果相加
forzin$(morezzz)dobbb=`ps-ef|grep"$y"|grep-vgrep|grep-vnetstat.sh`if[-n"$bbb"];thenec...
for z in $(more zzz)
do
bbb=`ps -ef|grep "$y"|grep -v grep | grep -v netstat.sh`
if [ -n "$bbb" ];then
echo "1"
else
echo "0"
fi
done 展开
do
bbb=`ps -ef|grep "$y"|grep -v grep | grep -v netstat.sh`
if [ -n "$bbb" ];then
echo "1"
else
echo "0"
fi
done 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询