#!/bin/bash log_path="./log/" dates=`date -d ‘-1 days‘ +‘%Y%m%d‘` cd $log_path; for i in `cat list`;do wget $i:/home/work/odp/log/search/search.log.${dates}22 ./;done cd ../; cat ${log_path}/search.log.${dates}* |python cal_adv.py |awk -F ‘\t|:‘ ‘{if($2>400){print $0}}‘|sort -nrk1>./result/result.$dates cp ./result/result.$dates /home/work/opsite/webroot/
时间: 2024-10-26 03:53:40