[grep][find] Find specific text in specific file types (recursive)

By.

min read

My profile

Share this:

[code:1:dd20b34f6f]find . -name “*.php” -exec grep “needle” {} +[/code:1:dd20b34f6f]

Adapted from:
[url]http://www.commandlinefu.com/commands/view/2998/grep-certain-file-types-recursively[/url]

Share this:

Leave a Reply

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