linux使用sed命令批量替换某个目录下文件的内容

sed -i "s/原字符串/新字符串/g" `grep 原字符串 -rl 所在目录`

猜你喜欢

转载自blog.csdn.net/huangbaokang/article/details/89948188
今日推荐