My first note
时间:2005-04-22 来源:luweinet
才发现CU提供blog:)以后在此记下我的linux note
#!/bin/bash
LANG=zh_CN
D=`date +"%d/%b/%Y"`
H=`grep $D /var/apache/logs/access_log |wc -l`
grep $D /var/apache/logs/access_log |awk '{print $1}'|sort -g -t"." -k 4 -u -o /tmp/$$
cat /tmp/$$
N=`cat /tmp/$$|wc -l`
echo Total IP today: $N
echo Total Hits today: $H
rm /tmp/$$
only to count apache log about ip~
相关阅读 更多 +