A great concise tutorial on how to write pipe aware programs for the unix shell in Ruby.