#!/usr/bin/ruby

#
## http://rosettacode.org/wiki/Get_system_command_output
#

var output = `ls`;           # `output` is a string
var lines  = `ls`.lines;     # `lines` is an array

say output.len;
say lines.len;
