grep -R 'a' pom.xml会出现 grep: pom.xml: 没有那个文件或目录 参考 http://www.itpub.net/thread-217122-1-1.html find . -name pom.xml |xargs grep jdk