shell脚本修改配置文件中某一配置项的内容

sed -r "s/dbgrid.dbmaster.ip(.*)/dbgrid.dbmaster.ip=$1/"  ./dbgrid.conf > ./dbgrid.bak


mv ./dbgrid.bak ./dbgrid.conf

相关推荐