https://blog.csdn.net/qq_37674858/article/details/80066264
2.2 使用sed命令對文件中的字符替換
例如:將aaaa字符串修改為bbbb
[root@mdw zxy]# sed -i 's|aaaa|bbbb|' file1
[root@mdw zxy]# cat file1
Good Luck
Hello World !
bbbb
轉載於:https://www.cnblogs.com/gcgc/p/10281223.html