全文件替换

2023-07-30  本文已影响0人  Yluozi

find ./ -name '.' -type f |grep -v 'monitor/error'|grep -v '10.216.4.119-startStop'|grep -v TNMS_LOG|grep -v cdrom|grep -v bash_history|grep -v log|grep -v client|grep -v jiake_operate_log |while read line; do grep -H '10.216.4.119' "line";done|awk -F':' '{print1}'|while read line ;do sed -i "s/10.216.4.119/10.230.253.165/g" $line;done

上一篇 下一篇

猜你喜欢

热点阅读