From: nobu.nokada@... Date: 2003-03-18T04:45:37+09:00 Subject: Re: irb as a shell Hi, At Tue, 18 Mar 2003 04:22:45 +0900, Mark Wilson wrote: > system("ls *gz > list") > a=File.open("list","r") > b=a.readlines b = Dir["*gz"] > b.each { |f| system("rm -rf #{f}") } require 'ftools' File.rm_f(*b) > b.each { |f| system("gtar -zxf #{f}") } Although this isn't concerned with Ruby, you don't need loop: $ zcat *gz | gtar -xif - -- Nobu Nakada