摘要:
1.创建cut_nginx_log.shlogs_path="/usr/local/nginx/logs/"logs_names=(access error)mkdir -p ${logs_path}$(date -d "yesterday" +"%Y")/$(date -d "yesterday" +"%m")/num=${#logs_names[@]}for((i=0;i<num;i++));domv ${logs_path}${logs_names[i]}.log ${logs_pa 阅读全文