#!/bin/bash cd/etc/Nginx/logs/old/ foriin`seq130` do dt=`date-d"$idayago"+%Y%m%d` cd${dt} line=`cat*_sl.senseyun.com-getTime.log|wc-l` echo${dt}:XX访问量"${line}" cd../ done原文链接:https://www.f2er.com/bash/389188.html
#!/bin/bash cd/etc/Nginx/logs/old/ foriin`seq130` do dt=`date-d"$idayago"+%Y%m%d` cd${dt} line=`cat*_sl.senseyun.com-getTime.log|wc-l` echo${dt}:XX访问量"${line}" cd../ done原文链接:https://www.f2er.com/bash/389188.html