Subject: A question about running external program
From: Zhao Yi <youhaodeyi gmail.com>
Date: Wed, 7 Jan 2009 17:32:13 +0900
I use this method to run an external program:
output=`uname -r | sed 's/\([^\.]*\.[^\.]*\)\.*.*/\1/'`
puts output
ruby will ignore the sed command. Doesn't ruby support "|"?
--
Posted via http://www.ruby-forum.com/.