How to find specific words in all php.ini files in all subdirectories

Use the following command the find all occurrences of a specified word in a text file:

home# grep -r --include="php.ini" -e "memory_limit" .

Please note there is a full drop . at the end of the command above.


Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top