On Mon, 10 Jan 2011 20:50:19 -0500 Rob Owens <rowens@ptd.net> wrote: > I tried this and it successfully creates myfile.zip: > > find ./ -iname "*.jpg" -print | zip myfile -@ > > But it fails if there are spaces in the path or filename. How can I > make it work with spaces? > > Thanks > > -Rob > I think the best way would be to quote them in the pipe: find ./ -iname "*.jpg" -printf "'%p'\n" | zip myfile -@ -- rbmj