[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Finding files containing 'string'



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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]