Find all files ending with ".sh" that were modified more than one day ago and execute a grep search for "SOME_TEXT_HERE" in each of them.
find ~ -name "*.sh" -mtime +1 -exec grep -l "SOME_TEXT_HERE" {} \;