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

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

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

 

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