sed 批量替换多个文件里的某个字符/串

提示: 国际惯例使用前先备份

sed -i "s/a/b/g" `grep 'a' -rl ./`

 

posted @ 2015-02-07 17:58  Debm.Zhang  阅读(227)  评论(1编辑  收藏  举报