#!/usr/bin/env ruby i = 0 while l = STDIN.gets puts "line #{i} (#{l.strip})" i+=1 end