From: "David A. Black" Date: 2005-04-02T07:57:17+09:00 Subject: Re: how to read output of shell command to variable? Hi -- On Sat, 2 Apr 2005, sin kanti wrote: > Hi, > > In perl, we can do > > $output = `file filename.txt`; > > How can i do this in Ruby? > I know that there is system to run shell command like this; > > system("file","filename.txt") > > but how to return the output of "file" command to variable? output = `file filename.txt` David -- David A. Black dblack@wobblini.net