摘要:
#!/bin/shlogs_dir=/oracle/weblogic/user_projects/domains/webdomain/log4jcd ${logs_dir}for file in `ls *.log.*`doapp=${file%%.log.20*}dt=${file##*.log.}dy=${dt:0:4}dm=${dt:5:2}dd=${dt:8:2}target_dir=${logs_dir}/${app}/${dy}/${dm}/${dd}/if [ ! -d ${target_dir} ];then /bin/mkdir -p ${target_dir} #e... 阅读全文