> find *.zip -print0 | xargs -0 unzip > > ) is not doing it for me.
Thanks for the three views of solving this problem. I had always thought that xargs was invoked once per find, so Amos' solution alerted me to the --max-args option. However, it still did not work - unzip treated each word in the filename as a zip file which of course failed. This solution needs something more to quote the filename containing spaces. Patrick's solution of adding an explicit -name option and quoting the ambiguous filename didn't work as such - it needed Amos' --max-args, then it worked. Daniel's solution was a tidy alternative that did work. Regards, Kevin -------- Forwarded Message -------- > From: Daniel Pittman <[EMAIL PROTECTED]> > To: [email protected] > Subject: Re: [SLUG] xargs with files with spaces > Date: Sat, 22 Nov 2008 01:32:32 +1100 > > Kevin Shackleton <[EMAIL PROTECTED]> writes: > > > I'm having trouble finding the right syntax for using xargs to extract > > multiple zip files that have space characters in the name. Using null > > delimiters (eg like: > for zip in *.zip; do unzip "$zip"; done > > Regards, > Daniel -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
