sed命令

sed -i "s/^const baseURL.*/const baseURL = 'http:\/\/192.168.2.152:8089';/g" /home/jenkins_build/zltf_gw/pc_zltf/src/https/config.js

sed -i "/^const baseURL./c\const baseURL = 'http:\/\/192.168.2.152:8089';" /home/jenkins_build/zltf_gw/pc_zltf/src/https/config.js
posted @ 2021-06-23 15:00  左岸丶  阅读(44)  评论(0编辑  收藏  举报