Paul Howarth wrote:
Andy Green wrote:
Paul Howarth wrote:
$ grep -i -r -l 'string' /place/to.start/searching
Interesting gotcha with grep... doesn't look in files beginning with .
when used like this.
Huh?
$ mkdir testdir
$ echo This is a test > testdir/.testfile
$ grep -i -r -l this testdir
testdir/.testfile
Methinks Andy is seeing the likes of
$ mkdir testdir
$ echo This is a test > testdir/.testfile
$ cd testdir
$ grep -i -r -l this *
grep: No match.
My favorite..
find . -print | xargs grep -i <string>
Slower, but in my experince, pretty bulletproof.