From: Dominik Honnef Date: 2009-08-18T21:19:52+09:00 Subject: Re: fromdos dos2unix in ruby krzysztof cierpisz writes: > On 18 Aug., 13:38, Krzysztof Cierpisz wrote: >> how can I achieve in ruby the result of running: >> fromdos dos_file.txt unix_file.txt >> >> or in vim: >> set ff=unix >> >> ? > > just to add, I need to do that conversion under windows. Well, you would read from the input file, replace the dos/windows line endings with unix ones and write to the output file. -- Dominik Honnef dominikho@gmx.net