Bootstrap

Sed (参数) ‘s###g‘ 详解

sed -i 's#.*itnode01.bigdata$#'${ITNODE01}' itnode01.bigdata#g' /root/hosts
sed -i 's#profiler.collector.ip=.*$#profiler.collector.ip='${PINPOINT_IP}'#g' ./apm-agent/pinpoint.config
sed -i "s#image:.*#image: /${image_repo}/${ms_name}:${image_version}#g"   ${ms_name}/cpaas-compose.yml
sed -i "s/^M//g" cpaas-compose.yml

 

;