针对日值中的图片进行统计
时间:2006-10-13 来源:Coolriver
针对日值中的图片进行统计
Perl的实现方法:
open SS,"www1.163.com_error_log";
$/="";
$tt=<SS>;
@dd=$tt=~/www\.163\.com\/images\/(\w+)?\.gif/g;
$sum=@dd;
print $sum; Shell的实现方法:
egrep -c www\.163.com\.com\/images\/\(.*\)?\.gif xxx.log
$/="";
$tt=<SS>;
@dd=$tt=~/www\.163\.com\/images\/(\w+)?\.gif/g;
$sum=@dd;
print $sum; Shell的实现方法:
egrep -c www\.163.com\.com\/images\/\(.*\)?\.gif xxx.log
相关阅读 更多 +