Help needed in excluding word

Hello,
When i run this command

find ./ -type f -print | xargs grep -l 'myWord'

it prints the file name where 'myWord' exists and also something like the below which i want to exclude

grep: can't open Fields
grep: can't open Search

I tried piping and grep -v 'open' but it did not work.

Thanks in advance
jak

try this:

find ./ -type f -print | xargs grep -l 'myWord' 2>/dev/null

This is caused by filenames with spaces in them, try:

find ./ -type f -print0 | xargs -0 grep -l 'myWord'

The highlighted characters are zero (not oh).

Thanks guys - it worked!