23.7.08

Recursive grep in solaris

In solaris "grep" tool don't have option to grep the specified "pattern" recursively(not like linux) under current directory.
Generally "grep" tool grep the pattern in current directory only.

Workaround for this is:
Have to use "find" command to get the all the files and "piped" this data to grep command.
#find . -type f | xargs grep "pattern"