
August 11th, 2012, 07:57 PM
|
 |
Contributing User
|
|
|
|
|
Specifying files to act upon in grep
I use the following command: Quote: | grep -R "dperson_bridge" *.php | because I want to search recursively the contents of all .php files containing the phrase "dperson_bridge" and it returns nothing.
Then I use the following command: Quote: | grep -R "dperson_bridge" * | and I receive the kind of output I expect to receive.
Why doesn't the *.php work? I don;t want grep to look into .css or .js files.
Thanks,
__________________
Evan
|