用 管道命令 分析apache 日志

来源:互联网 发布:秀米软件 功能 编辑:程序博客网 时间:2024/06/03 19:53

 cat  logSort.log  |  grep -v "sogou" | grep -v  "msnbot" | grep -v "http://" | wc -l

 cat  nolog.log  |  grep " /html/" |awk '{print $2" "}' | sort -n >laochai.txt

cat 0321-detail-access_log |grep " /html/" |awk '{print $6" "$7" "$8" "$9" "$10" "$11" "$12" "$13}'> logNoSort

 sort -k4 logNoSort > logSort

 

原创粉丝点击