#!/usr/bin/ruby -w # Expand LF sequences to CR-LF. STDIN.each_char{|c| if c == "\n" then print "\r" end print c }