|

楼主 |
发表于 2006-7-20 12:05:50
|
显示全部楼层
log 格式:
219.136.0.0 - - [20/Jun/2006:00:05:10 +0800] "GET /ref/st_mop_620gf/component/option,com_page/Itemid,709 HTTP/1.1" 302 269 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; TencentTraveler )" - - "gzip, deflate" "-" "-" - -
刚写了一个,效率比较低
#!/bin/sh
#test.sh
num=0
for i in `cat file1` ; do
cat ../abc.com-access_log.200606$i|grep -c '/ref[/|,]st_t2t2'|while read line;do
num=$(($num+$line))
done
done
echo $num
这个是统计6月份的。
l |
|