Posts Tagged ‘awk’

web访问日志分析

Posted by 机器人 on 18th 一月 2010 in linux/server

语句:

cat access.log  | awk '{print $1}' | sort -n | awk '{S[$NF]++} END
 {for(a in S) {print a"\t" S[a]}}' | sort +1 -2nr

Read the rest of this entry »