#!/usr/bin/env ruby input = ARGV[0] output = ARGV[1] STDOUT.sync = true while line = STDIN.gets puts line.gsub("#{input}", "#{output}") end