shell计算小数
process=50
if [ `echo "$process >= 90" | bc` -eq 1 ] ;then
echo "-----${process}" >> /tmp/process.log
fi
awk 解决符合条件的行才打印出来
top -b -n3 | grep php-fpm | awk ‘{if ($9>=90) print $0}‘
2023-10-15 09:21:04
shell计算小数
process=50
if [ `echo "$process >= 90" | bc` -eq 1 ] ;then
echo "-----${process}" >> /tmp/process.log
fi
awk 解决符合条件的行才打印出来
top -b -n3 | grep php-fpm | awk ‘{if ($9>=90) print $0}‘