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

相关文章:

  • 2021-11-25
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-12-31
  • 2022-12-23
  • 2021-12-07
猜你喜欢
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
相关资源
相似解决方案