statistics specify some columns count

cat access.log | awk '{print $2}' | sort | uniq -c | sort -k1nr | head -10

# -k1 follow the  first column
   nr 

 

posted @ 2016-01-04 19:56  hao.ma  阅读(152)  评论(0编辑  收藏  举报