From: Ben Anderson Date: 2005-12-30T07:22:09+09:00 Subject: create file with LF (not CRLF) in windows Hi, I have a bunch of files that I want to convert from CRLF to just LF. How might I do this? I'm testing with the following example file (steel.rb): f = File.new("steel", "w") f.syswrite("steel\ncity"); f.close I then run this from cygwin and get the following output Ben Anderson@andersonbd1 /cygdrive/c/ruby $ ruby steel.rb Ben Anderson@andersonbd1 /cygdrive/c/ruby $ cat -v steel steel^M city How might I get rid of the CR and just have ruby use an LF? Thanks, Ben