On Tue, Jan 11, 2011 at 12:56:35PM +1100, Andrew McGlashan wrote: > 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 -@ > This worked for me. I still plan to try the other suggestion, using -printf.
Thanks a lot guys. xargs is my new best friend. -Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110112192348.gd27...@aurora.owens.net