ack "#define"
will recurse into subdirs and find files that contain #define. But I wanted to limit the search to *.h files, so I tried
ack "#define" *.h
and it doesn't recurse anymore. The only results come from files in the working directory.
Version:
ack 1.96 Running under Perl 5.14.2 at /usr/bin/perl