From: pat eyler Date: 2005-11-05T05:06:42+09:00 Subject: Re: how do you do this with ruby? pate@linux:~/lang/ruby> echo "puts 'hello world'" | ruby - hello world pate@linux:~/lang/ruby> echo "puts 'hello world'" | ruby hello world pate@linux:~/lang/ruby> ruby -e "puts 'hello world'" hello world pate@linux:~/lang/ruby> On 11/4/05, casioculture@gmail.com wrote: > > > In bash, you'd do this with the perl interpreter > > Issue the perl command via -e switches on the shell command line: > perl -e 'print "Hello, world\n"' > > or > > Pass your script to Perl via standard input: > echo "print 'Hello, world'" | perl - > > How would you do the above with the ruby interpreter in bash? > > > -- thanks, -pate -------------------------