I've got a bit of a weird issue.
If I run:
find . -iname '*.php' -o -iname '*.pl' -o -iname '*.html' | xargs grep -i users
I get a load of errors for filenames containing spaces, but also some files match.
However, if I try the following so filenames with spaces in are correctly handled, no matches are returned:
find . -iname '*.php' -o -iname '*.pl' -o -iname '*.html' -print0 | xargs -0 grep -i users
What am I doing wrong? The second command should return me at least the same matching files as the first, but I don't get any matches.