title: How to save and display log information simultaneously by using Ruby command
body: <p>I have tried <code>ruby test.rb &gt; Result.txt</code></p>
  
  <p>However, printf information only saves in result.txt but it does not show in Ruby console. </p>
  
  <p>Any Ruby command could save and display log information simultaneously?</p>