[Techtalk] real life kewl text-processing and regexps samples wanted

Conor Daly conor.daly at oceanfree.net
Sun Jan 25 20:24:52 EST 2004


On Sun, Jan 11, 2004 at 12:17:38PM -0700 or so it is rumoured hereabouts, 
Andrea Landaker thought:
> 
> ls -Q *.zip | xargs -n 1 unzip-createdir
> 
> The -Q option to ls has it quote the files, so you don't get problems if the 
> files have spaces or quotes in them.  It would be nice if find had a similar 
> option, but so far I haven't found one.

Will 

find . -name '*.zip' -print0 | xargs -0 -n 1 unzip-createdir

work with spaces etc?
 
Conor
-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
  7:28pm  up 94 days, 12:37,  0 users,  load average: 0.08, 0.02, 0.01
Hobbiton.cod.ie
  7:23pm  up 94 days, 12:26,  1 user,  load average: 0.00, 0.00, 0.00


More information about the Techtalk mailing list