How to make a regexp search with find recursively . If you want to search only in php files, replace file_pattern with “*.php”
bash |copy code |?
1 find . -iname-exec grep -n
How to make a regexp search with find recursively . If you want to search only in php files, replace file_pattern with “*.php”
bash |copy code |?
1 find . -iname-exec grep -n
Recursively search all files matching a regexp in the current directory and then listing them.
bash |copy code |?
1 find . -type f -name "*.file" | xargs grep -l "STRING"
This could also be done like this:
bash |copy code |?
1 find . -type f -name "*.file" --exec grep -l "STRING" {} \;