hydra/test/echo_the_dolphin.rb

12 lines
162 B
Ruby
Raw Normal View History

2010-01-26 20:31:03 +00:00
#!/usr/bin/env ruby
# read lines from stdin
# echo each line back
# on EOF, quit nicely
$stdout.sync = true
while line = $stdin.gets
$stdout.write(line)
end