#!/usr/bin/env ruby require 'rio' ARGV.each do |path| tmp = rio(?$) tmp < rio(path).chomp.map { |l| "#{l}\n" } tmp > rio(path) end __END__