sed 递归替换

来源:互联网 发布:nginx 添加第三方模块 编辑:程序博客网 时间:2024/05/15 02:06

将当前目录下的所有文件中的x替换为y

find . -type f -print0 | xargs -0 sed -i "s/x/y/g"

0 0
原创粉丝点击