linux 替换文件中的字符串

sed -i 's/str1/str2/g'  filename

str1: 被替换的字符串

str2: 替换成的字符串

posted @ 2021-02-05 10:31  马云12314  阅读(230)  评论(0编辑  收藏  举报