聘我网

新概念招聘3.0

find问题

vote up0vote downstar

这两天用find命令老是碰到这个问题:

[user@dev-test git-1.7.6]$ find /usr/include/ -name *.h | xargs grep
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.

是哪里错了?

 

1 个答复

vote up0vote downcheck

*.h得用"扩起来:

find /usr/include/ -name "*.h"| xargs grep
链接

您的回答





不是您要找的问题? 浏览其他含有标签 的问题或者 自己问个.