Tag: regexp
-
Find: UNIX regexp search down a directory tree
How to make a regexp search with find recursively . If you want to search only in php files, replace file_pattern with “*.php” find . -iname -exec grep -n {} \; -print
-
Find and list files containing a string
Recursively search all files matching a regexp in the current directory and then listing them. find . -type f -name “*.file” | xargs grep -l “STRING” This could also be done like this: find . -type f -name “*.file” –exec grep -l “STRING” {} \;