Linux下Shell文件内容替换(sed)(转)
2017-12-10 22:01
399 查看
sed -i 's/被替换的内容/要替换成的内容/g' file #-i为直接修改并保存
参考:
http://blog.sina.com.cn/s/blog_7211cb9201019hgd.html
http://wangchujiang.com/linux-command/c/sed.html
相关文章推荐
- 详解linux下批量替换文件内容的三种方法(perl,sed,shell)
- linux批量替换文件内容3种方法(perl,sed,shell)
- Linux_替换文件内容_sed
- Shell脚本运行hive语句 | hive以日期建立分区表 | linux schedule程序 | sed替换文件字符串 | shell推断hdfs文件文件夹是否存在
- linux批量替换文件内容3种方法(perl,sed,shell)
- linux批量替换文件内容3种方法(perl,sed,shell)
- shell 文件内容替换 sed用法
- shell 文件内容替换 sed用法
- linux批量替换文件内容3种方法(perl,sed,shell)
- linux批量替换文件内容3种方法(perl,sed,shell)
- linux批量替换文件内容3种方法(perl,sed,shell)
- shell 文件内容替换 sed用法
- linux批量替换文件内容3种方法(perl,sed,shell)【转载】
- linux批量替换文件内容3种方法(perl,sed,shell)
- linux批量替换文件内容3种方法(perl,sed,shell)
- shell 文件内容替换 sed用法
- shell 文件内容替换 sed用法
- 请教大家,如何使用sed命令,替换文件指定行的内容呢?-Linux系统管理-ChinaUnix.net
- shell 文件内容替换 sed用法
- linux批量替换文件内容3种方法(perl,sed,shell)