码迷,mamicode.com
首页 > 系统相关 > 详细

shell脚本修改文件

时间:2019-01-17 11:38:12      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:shel   .net   文件   get   tar   net   roo   sed命令   https   

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

shell脚本修改文件

标签:shel   .net   文件   get   tar   net   roo   sed命令   https   

原文地址:https://www.cnblogs.com/gcgc/p/10281223.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!