problem using recursive grep (-r option)

marco atzeri
Tue Aug 7 16:35:00 GMT 2012

On 8/7/2012 5:08 PM, AngusC wrote:
> If I use the command:
> grep -nH -r "my pattern" *.*
> I get results back as expected
> But if the file pattern is like this:
> grep -nH -r "my pattern" *.log
> I get no results back (Even though I have a ton of files with this pattern
> with .log file extension).
> Am I doing something wrong?

in the second case the "-r" is looking for *.log
file or directories and I guess the directory does not match.


find . -name "*.log" -exec grep -nH "my pattern" \{\} \;


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list