From: "Berger, Daniel" Date: 2005-11-08T02:55:43+09:00 Subject: Re: Line Endings? > -----Original Message----- > From: Ezra Zygmuntowicz [mailto:ezra@yakimaherald.com] > Sent: Monday, November 07, 2005 10:51 AM > To: ruby-talk ML > Subject: Line Endings? > > > Hey there folks- > > Does anyone have a reliable pure ruby way to change the line > endings of a file from Classic MacOS9 to normal unix line endings? > Should I just run a regex on it or is there a better way? require "ptools" File.nl_convert(old_file, new_file, "unix") Regards, Dan