#!/usr/bin/env ruby # This code comes from http://ruby-it.org/pages/Usare+pipe+e+fork # Check the page for copyright notice and explanations