#!/bin/bash
cd /etc/nginx/logs/old/
for i in `seq 1 30`
do
dt=`date -d "$i day ago" +%Y%m%d`
cd ${dt}
line=`cat *_sl.senseyun.com-getTime.log |wc -l`
echo ${dt}:XX访问量 "${line}"
cd ../
done
原文地址:http://blog.51cto.com/wsxxsl/2054635
时间: 2024-11-09 06:17:07