How to do recursive GREP in Solaris ?

In general, when we need to search for a particular text in a file, we will use the below command,

grep "Search Text" <FileName>

For eg., grep "Name" Person.prop

Consider a scenario, where we need to search for a text in a directory recursively. How to do this ? Will grep command works recursively in all directories and sub-directories ? Don't worry...

Here's the command to do this,

find . | xargs grep "Search Text"

The above command will search for the text ( ie., "Search Text" ) recursively in all sub-directories under the current working directory.

Search