Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2511

Re: writing Unix files on Windows

From Knute Johnson <nospam@rabbitbrush.frazmtn.com>
Newsgroups comp.lang.java.help
Subject Re: writing Unix files on Windows
Date 2013-02-20 13:28 -0800
Organization A noiseless patient Spider
Message-ID <kg3f3q$ofi$1@dont-email.me> (permalink)
References <v0j4i8dgbatj22b0u6e2dpv90tg8jsdsqn@4ax.com>

Show all headers | View raw


On 2/18/2013 07:45, Roedy Green wrote:
> On Windows, println uses \r\n line endings.
>
> What is the canonical way to write files with \n line endings on
> Windows?
>
That is always a problem when moving a text file from Windows to Unix. 
There is a Unix utility for conversion, dos2unix and there might be the 
reverse I can't remember.

knute...

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

writing Unix files on Windows Roedy Green <see_website@mindprod.com.invalid> - 2013-02-18 07:45 -0800
  Re: writing Unix files on Windows Fred Kleinschmidt <fred.l.kleinschmidt@gmail.com> - 2013-02-18 07:51 -0800
    Re: writing Unix files on Windows Roedy Green <see_website@mindprod.com.invalid> - 2013-02-18 08:58 -0800
  Re: writing Unix files on Windows Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-20 13:28 -0800
    Re: writing Unix files on Windows "Steve W. Jackson" <stevewjackson@knology.net> - 2013-02-21 12:00 -0600
      Re: writing Unix files on Windows "John B. Matthews" <nospam@nospam.invalid> - 2013-02-22 00:01 -0500
      Re: writing Unix files on Windows Roedy Green <see_website@mindprod.com.invalid> - 2013-02-24 03:53 -0800

csiph-web