批量替换端口

 

批量将管理端口17001变更成18001,如下脚本:

[root@pxc1 ~]# grep  -Rl  "17001"  /weblogic/web11g36|xargs sed  -i 's/17001/18001/g'

posted @ 2021-01-27 09:07  beawh  阅读(93)  评论(0编辑  收藏  举报