kubectl top po -n cloud-2 | awk '{print $2}'|awk -Fm '{print $1}'|awk '{sum += $1};END {print sum}'
SHELL AWK 循环求和
最新推荐文章于 2024-10-08 14:44:04 发布
kubectl top po -n cloud-2 | awk '{print $2}'|awk -Fm '{print $1}'|awk '{sum += $1};END {print sum}'