find a file

Hi,
on HP-UX B.11.31 U ia64
I want to find any file containing PURGE_ARCHIVELOG , then I issued :

find . -name *PUR*.log | -exec grep "PURGE_ARCHIVELOG"
ksh: -exec:  not found

Or :

find . -name *.log | -exec grep "PURGE_ARCHIVELOG"
ksh: -exec:  not found
find: missing conjunction

Thank for help

find . -name '*PUR*.log' -exec grep -l "PURGE_ARCHIVELOG" {} +

Hi

find . -name "*PUR*.log" -exec grep -l PURGE_ARCHIVELOG '{}' \;

Guru.

thank you.

 
find . -name "*PUR*.log" | xargs grep -l PURGE_ARCHIVELOG

find . -type f -name "*PUR*.log | xargs grep -l PURGE_ARCHIVELOG