Monday, April 25, 2011

Find a string recursively in Unix / Linux files

There is no simple approach in UNIX / Linux to find a string in the files recursively. Here is the command that I often used and you can use

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