find 命令

find      /               -type f     -name "*.log"             | xargs          grep "ERROR"

     要查的目录         类型          什么样的文件下查找                              要查找的内容

posted @ 2015-04-10 15:35  johnny_shi  阅读(128)  评论(0编辑  收藏  举报