开发者

Search in a list of files

开发者 https://www.devze.com 2023-02-04 00:19 出处:网络
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?

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

精彩评论

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

关注公众号