linux基础命令之sed

sed -i 's/\/opt\/install\//\/opt\/3044/g' zy.txt

 

注意替换的字符中带有/  要用\/ 转义

posted @ 2020-06-02 09:38  定静沉行  阅读(129)  评论(0编辑  收藏  举报