Hi Leo,

If you're playing around with "system", checking out "IO.popen" and 
"open3" could also be of interest.

Garth

On 21/12/11 00:33, Leo M. wrote:
> Hello!
>
> I was messing around with the "system" command in Ruby!
> That's really cool, but a question immediately sprang out while using it
> : I noticed that its output is a TrueClass, but how could I use the
> output made of directories and files as string?
> For example : if I cast a
>
> system('ls')
>
> it will return me a variety of directories and files. So, let's put that
> I want to scan this result to find out which directories are named how
> (with a Regexp), is there a way to read this output or the is solely a
> TrueClass?
>