problem using recursive grep (-r option)

marco atzeri marco.atzeri@gmail.com
Tue Aug 7 17:32:00 GMT 2012


On 8/7/2012 7:15 PM, AngusC wrote:
>

do not top post


> Why would I use find . -name "*.log" -exec grep -nH "my pattern" \{\} \;
> which is much longer to type when I can use grep ... -r ???

because it works ?


>>>
>>> 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).
>>>

and this not.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list