How to grep recursively on Solaris

Posted Over 12 years ago. Visible to the public.

grep -r doesn't work on Solaris. You can only grep on files in the current directory.

A workaround is to use grep with find:

find ./ -type f -exec grep "foo" {} +
Last edit
About 12 years ago
License
Source code in this card is licensed under the MIT License.
Posted by Kim Klotz to makandra dev (2011-10-10 15:42)