Atilla Filiz
Atilla Filiz

Reputation: 2432

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.

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

Upvotes: 1

Views: 89

Answers (1)

Navi
Navi

Reputation: 8736

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

Upvotes: 2

Related Questions