#!/bin/Bash
#2015 -08-12ip_pool=(`Echo 10.20. the. { One.. -}` `Echo 10.142.194. { -.. +}`) forIpinch${ip_pool[@]}; Donode=`ls/disk3/yh_data/data/mobile2.0/${ip}/PV ' forNinch${node}; DoCD/disk3/yh_data/data/mobile2.0/${ip}/pv/${n}lspv+ -*.log|sed "s/pv+\ ([^.] \+\) \ (\.log\)/MV & clientpv+${n}+${ip}+\1\2/e" Done Done forIpinch${ip_pool[@]}; Donode=`ls/disk3/yh_data/data/mobile2.0/${ip}/Info` forNinch${node}; DoCD/disk3/yh_data/data/mobile2.0/${ip}/Info/${n}lsclient+weblogiclogsname*+ -*.log|sed "s/client+\ ([^.] \+\) \ (2015.*\.log\)/MV & client+${n}+${ip}+\2/e" Done Done forIpinch${ip_pool[@]}; Donode=`ls/disk3/yh_data/data/mobile2.0/${ip}/interface ' forNinch${node}; DoCD/disk3/yh_data/data/mobile2.0/${ip}/interface/${n}lsclient+ -*.log|sed "s/client+\ ([^.] \+\) \ (\.log\)/MV & client+${n}+${ip}+\1\2/e" lsclient-open+ -*.log|sed "s/client-open+\ ([^.] \+\) \ (\.log\)/MV & client-open+${n}+${ip}+\1\2/e" Done Done
Log file Bulk Rename