#!/usr/bin/env ruby if ARGV.size != 1 puts "USAGE: ruby-each-line CODE" exit end STDIN.each_line do |line| line = line.strip l = line eval(ARGV.first) end