http://cubicspot.blogspot.ca/2013/03/just-use-grep-dont-use-find-grep-xargs.html
Previously, I used to use:
1 | find . | grep css| xargs grep "sidebar" -sl |
This command works much better, faster and allows for the use of special characters in the search string.
1 | grep -nir --include="*.php" "my_function" . |
Here is sample output when running the following command:
1 | root@t605:/etc# grep -nir --include="*" "10.10.0" . |