search pattern by grep

hai folks,
i am vijay very new to this website.

 My query:
 Search patterns from root directory to all directories by using    grep

grep -r "pattern" /

hi,

very happy to see ur reply

but i get this error

grep -r "include" /
grep: illegal option -- r
Usage: grep -hblcnsviw pattern file . . .

That's an odd flavor of unix. Post the result of running 'uname -a' for us to gawk at, and then try this:

find / -exec grep "include" {} ';' -print