码迷,mamicode.com
首页 > 系统相关 > 详细

Linux--对文件夹下的配置文件批量改动IP

时间:2014-11-02 12:05:10      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:style   ar   sp   文件   div   on   art   linux   size   

sed -i ‘s/10.1.1.1/10.1.1.2/g‘ `grep -ir 10.1.1.1 * |grep -E ‘.xml:|.cfg:|.ini:|.wsdl:|.properties:‘ | awk -F: ‘{print $1}‘ | uniq `


注:当中1为原IP,2为新IP ;要扫描的配置文件请依据实际须要。

Linux--对文件夹下的配置文件批量改动IP

标签:style   ar   sp   文件   div   on   art   linux   size   

原文地址:http://www.cnblogs.com/gcczhongduan/p/4068904.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!