From: Bill Kelly Date: 2006-10-22T16:57:06+09:00 Subject: Re: Pipe shell output to ruby -e? From: "x1" > > Just wondering how you can pipe output to ruby -e? I tried this but > it doesnt work :-( > > #### borked > echo "hello" |ruby -e 'puts ARGV.to_s' A couple possibilities: echo hello | ruby -e "puts gets" echo hello | ruby -e "puts ARGF.read" ruby -e 'puts ARGV.to_s' `echo hello` Hope this helps, Bill