[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: piping find to zip -- with spaces in path

Hi Rob,

Rob Owens 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?

Does this work:

find ./ -iname "*.jpg" -print0 | xargs -0 zip myfile -@

Kind Regards

Andrew McGlashan
Broadband Solutions now including VoIP

Reply to: