WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

search content of files using grep and find

Submitted by barnettech on Fri, 05/14/2010 - 09:36

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" '{}' \;