摘要:
[plain]view plaincopy#!/bin/shmem=`free-m|awk'NR==2{print$2}'`ps-aux2>&1|sort-k4-r|awk'$4~/^[0-9]/&&$4>0{print$4,$11}'|awk'{print$1/100*mem""$2}'mem=$mem|sort-k2|awk'{a[$2]+=$1;b[$2]++;total+=$1;total++;}END{for(iina){t=i;gsub(/:|.*\//,"&q 阅读全文
posted @ 2012-07-05 15:57 feisky 阅读(489) 评论(0) 推荐(0) 编辑