On Mon, 10 Jan 2011 20:50:19 -0500
Rob Owens <[email protected]> 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


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to