My first note

发表于:2007-07-04来源:作者:点击数: 标签:
  才发现CU提供blog:)以后在此记下我的linux note

 #!/bin/bash
LANG=zh_CN
D=`date +"%d/%b/%Y"`
H=`grep $D /var/apache/logs/aclearcase/" target="_blank" >ccess_log |wc -l`
grep $D /var/apache/logs/access_log |awk '{print }'|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~

原文转自:http://www.ltesting.net