Finding files containing 'string'

Paul Howarth paul at city-fan.org
Wed Feb 1 17:34:28 UTC 2006


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

Paul.




More information about the fedora-list mailing list