批量替换某个目录下所有文件里的内容
摘要:
cd 到目的目录sed -i "s/查找的内容/替换后的内容/g" `grep -rl "查找的内容" ./`参考来源:https://www.cnblogs.com/aqicheng/p/11446791.html 阅读全文
posted @ 2020-01-28 16:57 BPSO_mynotes 阅读(875) 评论(0) 推荐(0) 编辑
posted @ 2020-01-28 16:57 BPSO_mynotes 阅读(875) 评论(0) 推荐(0) 编辑
posted @ 2020-01-28 16:28 BPSO_mynotes 阅读(1186) 评论(0) 推荐(0) 编辑