开发者

Search in a list of files

I have a huge list of C source and header files, actually an autogenerated "cscope.files" file.

Is there a way to search for a string(not a C symbol) in all those files?

The files are distributed in a huge networked filesystem and I do not want to grep recursively in the root of that system开发者_C百科.

I use Red Hat Enterprise Linux and gvim(+cscope) for my development. Any vim or python(2.3) or shell solution is OK.


find . -name '*.c'|xargs grep "some string"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜