Linux批量替换文件内容

使用sed批量替换指定目录中文件

sed -i "s/<原内容>/<新内容>/g" `grep <原内容> -r ./`

posted @ 2017-03-20 11:50  tyanbin  阅读(69)  评论(0)    收藏  举报