I want to pipe a find result to a new find. What I have is:

```
find . -iname "2010-06*" -maxdepth 1 -type d | xargs -0 find '{}' -iname "*.jpg"

```

Expected result: Second find receives a list of folders starting with 2010-06, second find returns a list of jpg's contained within those folders.

Actual result: "find: ./2010-06 New York\n: unknown option"

Oh darn. I have a feeling it concerns the format of the output that the second find receives as input, but my only idea was to suffix -print0 to first find, with no change whatsoever.

Any ideas?