Elimincating double result when using find and grep

Hi,

i am using the command


find . -exec grep -i  "sometexttofoundinfiles" '{}' \; -print

The problem with this command is it prints the path of file i want twice. I did try the "-q" option of the grep command. It generates an error "invalid option". i guess the shell i am using must be an older version or i am just not sure. is there any way, i can print the file path only once?

Drop the -print.

find . -exec grep -i  "sometexttofoundinfiles" '{}' \;

Or

find . -exec grep -q -i  "sometexttofoundinfiles" '{}' \; -print