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


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

Re: writing Unix files on Windows

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail
From Knute Johnson <nospam@rabbitbrush.frazmtn.com>
Newsgroups comp.lang.java.help
Subject Re: writing Unix files on Windows
Date Wed, 20 Feb 2013 13:28:27 -0800
Organization A noiseless patient Spider
Lines 11
Message-ID <kg3f3q$ofi$1@dont-email.me> (permalink)
References <v0j4i8dgbatj22b0u6e2dpv90tg8jsdsqn@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 20 Feb 2013 21:27:22 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="7c422d775ed48e7adc49e6fe0e4e2da4"; logging-data="25074"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+V4/2lUM+RD2HHcL7KzRsG"
User-Agent Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
In-Reply-To <v0j4i8dgbatj22b0u6e2dpv90tg8jsdsqn@4ax.com>
Cancel-Lock sha1:AJZPxpY00nxcYYsejLpzgY+zNGs=
Xref csiph.com comp.lang.java.help:2511

Show key headers only | 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