PDA

View Full Version : Quick Linux help needed


cdietschrun
07-31-2008, 11:34 AM
I have a massive log file that I need to find lines reading only one thing.

I need a script or command to help me do this.

Basically, every now and then there is "Foo.c can't find include file "smstruct.h"" so that is the exact error I need to get rid of, but the problem is in 100's of files. I know grep is something to do with it, but I would like to be able to just get a quick list of every .c file reporting the error.

foo.c can't find...
bar.c can't find...
blah.c can't find...

That would help immensely. Anyone?

cdietschrun
07-31-2008, 11:36 AM
Nevermind, already figured it out.

grep smstruct.h bldrx.log

Haha, sorry...