一行统计shell

cat count.log | awk '{print $7}' | awk '{if ($1 == "-") empty++ }END {print NR, empty, empty/NR}'

 

posted @ 2015-10-28 16:57  hao.ma  阅读(170)  评论(0编辑  收藏  举报