From: 7stud -- Date: 2007-09-29T17:18:01+09:00 Subject: Re: a lot of directories each with a .zip 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.) > > any help on either doing it all in ruby, or the simple bash command > I'm failing to execute, would be helpful :) thank you much! ls -R | grep zip (you don't need quotes) produces something like this: aaa.zip bbb.zip cccc.zip but there are no path names associated with those file names. I imagine unzip needs to know the full path to the file in order to unzip it--unless the file happens to be in the current directory. -- Posted via http://www.ruby-forum.com/.