From: "Jesús Gabriel y Galán" Date: 2007-09-29T17:41:50+09:00 Subject: Re: a lot of directories each with a .zip On 9/29/07, Cameron Matheson wrote: > On 9/28/07, Simon Schuster wrote: > > I could go about this a bunch of different ways. my lame bash skills > > came up with: > > > > ls -R | grep "zip" | unzip -d /targetdir , which didn't work (I get > > confused with the pipes and the input and the whatnot.) > but I think this bash > command should work: > > find . -name "*.zip" -type f -exec unzip -d /targetdir {} \; I think the above is the best. Other way if you really want to use grep and send the output to another command like unzip would be: find . | grep "\.zip" | xargs unzip Jesus.