1 |
On Sat, 6 Jun 2015 13:11:04 -0400, Philip Webb wrote: |
2 |
|
3 |
> > I've bunch of php files in many directories |
4 |
> > and I need to find a text string in them "Check/Money Order" |
5 |
> |
6 |
> 'cd' to the lowest dir which contains them all, |
7 |
> then 'grep -r "Check/Money Order" *.php'. |
8 |
|
9 |
That will only search *.php files in the current directory, you need |
10 |
|
11 |
grep -r --include='*.php' 'Check/Money Order' . |
12 |
|
13 |
or drop the --include option to search all files. Use single quotes to |
14 |
stop the shell from trying to interpret anything. |
15 |
|
16 |
|
17 |
-- |
18 |
Neil Bothwick |
19 |
|
20 |
Why do they call it a TV set when you only get one? |