I am trying to find all images in subfolders of a given folder, and move them somewhere else. I have tried the following in `zsh` (my default) and `sh` (what most tutorials seem to be using) on a Mac running OS X 10.9.3.

This prints out all the images in the subfolders of `$someDir`:

```
find "$someDir" -iname \*.jpg -o -name \*.png -o -name \*.gif

```

However, when I want to pass those images to another command, I can’t get it to work. As an exercise, I tried it with `echo`:

```
find "$someDir" -iname \*.jpg -o -name \*.png -o -name \*.gif -exec sh -c "echo hello {}" \;

```

It just returns silently, and the value of `$?` is `0`.

I eventually want to do something along these lines:

```
find "$someDir" -iname \*.jpg -o -name \*.png -o -name \*.gif -exec sh -c "mv {} $destination" \;

```

But I can‘t even get the `echo` example to work. What am I doing wrong?