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

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