linux下文本文件中的字符串一次性替换该怎么做?

2025-03-24 17:21:01
推荐回答(2个)
回答1:

sed -i 's/aa/bb/g' file

直接修改文本做全局替换。

回答2:

用sed就可以了
sed -i 's/aa/bb/g' file