Wednesday, February 13, 2008

How to find a string recursively in Unix / Linux

Quite interestingly there is no simple approach in UNIX / Linux to find a string in the files recursively. Here is the command that you can use

find . -type f -exec grep "string to find" {} \; -print

No comments: