sed命令

来源:互联网 发布:以后别做朋友知乎 编辑:程序博客网 时间:2024/06/07 23:30

替换文本中的所有字符

如果要将1.log中的marble全部换为mabio

sed -i 's/marble/mabio/g' 1.log
原创粉丝点击