ps -ef | grep java | grep -v grep | awk ‘{sum[$1]+=1} END {for(k in sum) print k “:” sum[k]}’
awk计数
最新推荐文章于 2024-09-20 17:59:07 发布
ps -ef | grep java | grep -v grep | awk ‘{sum[$1]+=1} END {for(k in sum) print k “:” sum[k]}’