From: Brian Candler Date: 2003-03-18T08:43:40+09:00 Subject: Re: irb as a shell On Tue, Mar 18, 2003 at 04:22:45AM +0900, Mark Wilson wrote: > system("ls *gz > list") > a=File.open("list","r") > b=a.readlines Another way: b = IO.popen("ls *gz","r").readlines # ,"r" is optional