Unix/Linux

search content of files using grep and find

On solaris boxes I need to use this command to search through the content of files recursively through all directories:

find . -exec grep -l "text to find" '{}' \;

on linux this works

grep -r "text to find" '{}' \;

To send mail from a Unix/Linux shell script

echo "This is mail body" | mail -s "This is subject" mail_ID@somedomain.com