批量替换整个文件夹下的文件内容

find /data -name "*" -print | xargs -i sed -i 's/aa/bb/' {}

 

posted @ 2017-06-19 19:38  bocboy  阅读(399)  评论(0)    收藏  举报