How to grep recursively in Solaris

If you are from Linux background, you will find irritating that Solaris’s grep command does not support -r switch to perform recursive grep. But, don’t worry, there is a workaround in Solaris to perform grep recursively using the piped command as below.

find . | xargs grep 'Your Grep Value'