Re: Marshal Pipe

Robert:

ruby -e ‘10.times {|i| Marshal.dump(i, $stdout) }’ | ruby -e ‘until
$stdin.eof?; p Marshal.load($stdin) end’

THANKS!!!
Did not recognized it at first read, because it’s a bit cryptic.
-Carlos

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs