in reply to Re: Search thru directories of .c & .h files for @Constants
in thread Search thru directories of .c & .h files for @Constants

The -w option was unknown, so I removed that.

Then it ran without finding the file, test_code.c in the current directory. So I looked up the commands, to better understand what we were doing...it should work, but it just returns empty...no printout at all.

ki6jux

my rep now stands @ -3...

  • Comment on Re^2: Search thru directories of .c & .h files for @Constants

Replies are listed 'Best First'.
Re^3: Search thru directories of .c & .h files for @Constants
by jdporter (Paladin) on Sep 19, 2007 at 01:06 UTC
    egrep --recursive --include=*.[ch] 'foo|bar|baz|boz' *

    But you need an advanced grep, such as gnu grep.

    A word spoken in Mind will reach its own level, in the objective world, by its own weight