Linux 递归替换目录下所有文件里的字符串

find . -name "*.htm" | xargs sed -i -e "s%somebody%donal%g"
posted @ 2011-04-24 20:07  Donal  阅读(1851)  评论(0编辑  收藏  举报