From: Robert Klemme Date: 2005-04-02T16:24:44+09:00 Subject: Re: how to read output of shell command to variable? "Andrew Walrond" schrieb im Newsbeitrag news:200504012358.52121.andrew@walrond.org... > On Friday 01 April 2005 23:52, sin kanti wrote: >> Hi, >> >> In perl, we can do >> >> $output = `file filename.txt`; >> >> How can i do this in Ruby? > > $output = `file filename.txt` > > ;) In fact, you can even add the ";" and keep the Perl code altogether. :-)) $output = `file filename.txt`; Kind regards robert