Re: problem using recursive grep (-r option)

2012-08-09 Thread Larry Hall (Cygwin)
On 8/9/2012 2:27 AM, Andrey Repin wrote: Greetings, AngusC! This works find . -name "*.log" | grep -nH -r "my pattern" *.* What? This is ridiculous. Do you read what you write? Indeed. Can we all agree that this thread has drifted far enough away from anything Cygwin-specific that it c

Re: problem using recursive grep (-r option)

2012-08-08 Thread Andrey Repin
Greetings, AngusC! > This works > find . -name "*.log" | grep -nH -r "my pattern" *.* What? This is ridiculous. Do you read what you write? -- WBR, Andrey Repin (anrdae...@freemail.ru) 09.08.2012, <10:27> Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems

Re: problem using recursive grep (-r option)

2012-08-08 Thread Gary Johnson
On 2012-08-08, marco atzeri wrote: > On 8/8/2012 11:11 AM, AngusC wrote: > > > DO NOT TOP POST ! > > >I did try the --include way but in Cygwin it didn't work for some reason. Both of these work fine for me in Cygwin (on Windows XP): grep -nH -r "my pattern" --include "*.log" . grep -nH

Re: problem using recursive grep (-r option)

2012-08-08 Thread marco atzeri
On 8/8/2012 11:11 AM, AngusC wrote: DO NOT TOP POST ! I did try the --include way but in Cygwin it didn't work for some reason. Neither does find "." -name "*.log" -exec grep -nH "my pattern" {} \; find "." -name "*.log" -exec grep -nH "my pattern" \{\} \; -- Problem reports: htt

Re: problem using recursive grep (-r option)

2012-08-08 Thread AngusC
This works find . -name "*.log" | grep -nH -r "my pattern" *.* marco atzeri-4 wrote: > > 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 patt

Re: problem using recursive grep (-r option)

2012-08-08 Thread AngusC
I did try the --include way but in Cygwin it didn't work for some reason. Neither does find "." -name "*.log" -exec grep -nH "my pattern" {} \; or find "." -name "*.log" | grep -nH "my pattern" So struggling about on Cygwin at the moment. Sean Daley-2 wrote: > > On Tue, Aug 7, 2012 at 11

Re: problem using recursive grep (-r option)

2012-08-08 Thread Andy Koppe
On 7 August 2012 16:57, marco atzeri wrote: > 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

Re: problem using recursive grep (-r option)

2012-08-07 Thread ping
On 8/7/2012 1:55 PM, Sean Daley wrote: On Tue, Aug 7, 2012 at 11:08 AM, 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

Re: problem using recursive grep (-r option)

2012-08-07 Thread Sean Daley
On Tue, Aug 7, 2012 at 11:08 AM, 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

Re: problem using recursive grep (-r option)

2012-08-07 Thread marco atzeri
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 re

Re: problem using recursive grep (-r option)

2012-08-07 Thread AngusC
Why would I use find . -name "*.log" -exec grep -nH "my pattern" \{\} \; which is much longer to type when I can use grep ... -r ??? marco atzeri-4 wrote: > > 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

Re: problem using recursive grep (-r option)

2012-08-07 Thread marco atzeri
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

RE: problem using recursive grep (-r option)

2012-08-07 Thread Adam Dinwoodie
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 s

problem using recursive grep (-r option)

2012-08-07 Thread AngusC
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? -- View th