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


Groups > comp.graphics.apps.gnuplot > #3561

Re: [OT] add carriage return to text files

From gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups comp.soft-sys.octave, comp.graphics.apps.gnuplot, comp.lang.awk
Subject Re: [OT] add carriage return to text files
Date 2017-02-20 08:29 +0000
Organization The official candy of the new Millennium
Message-ID <o8e9co$2rj$2@news.xmission.com> (permalink)
References <a49sgg.tnn.19.1@news.alt.net> <o8e7ss$50d$1@solani.org>

Cross-posted to 3 groups.

Show all headers | View raw


In article <o8e7ss$50d$1@solani.org>, Karl Ratzsch  <mail.kfr@gmx.net> wrote:
>Am 19.02.2017 um 23:41 schrieb dale:
>> I have a bunch of octave, gnuplot and awk files that I made in gedit on 
>> linux, they only have a linefeed at the end of a line, I would like to 
>> add a carriage return after each linefeed so I can see them on windows
>> 
>> any ideas? probably could do an awk file on each, that would save some time
>> 
>> want to do them in a batch all at once, guess I could do a bash script 
>> of awk conversions
>
>
>
>Just don't use the horrible built-in "notepad.exe" editor on windows,
>but one of the much better configurable alternatives.
>

This is good advice.  For the most part, there's no real problem with just
leaving the files as they are (i.e., in Unix/Linux format).  Most Windows
programs will work OK.  It is just that the default editor - the one people
intuitively recommend for newbies, even though they'd never actually use it
themselves - is brain dead about this.

The simplest alternative is "Wordpad", which is installed by default in
Windows (no special install or configuration needed) and has no problem
displaying files w/o CRs.

But, yeah, I get caught by this every once in a while - bringing up a Unix
file in Notepad and going Arrrrghhhh!

-- 

First of all, I do not appreciate your playing stupid here at all.

	- Thomas 'PointedEars' Lahn -

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

[OT] add carriage return to text files dale <dale@dalekelly.org> - 2017-02-19 17:41 -0500
  Re: [OT] add carriage return to text files Kaz Kylheku <336-986-7787@kylheku.com> - 2017-02-19 23:54 +0000
    Re: [OT] add carriage return to text files dale <dale@dalekelly.org> - 2017-03-04 12:01 -0500
  Re: [OT] add carriage return to text files Lorenz <lorenznl@yahoo.com> - 2017-02-20 07:35 +0000
  Re: [OT] add carriage return to text files Karl Ratzsch <mail.kfr@gmx.net> - 2017-02-20 09:03 +0100
    Re: [OT] add carriage return to text files gazelle@shell.xmission.com (Kenny McCormack) - 2017-02-20 08:29 +0000
      Re: [OT] add carriage return to text files Karl Ratzsch <mail.kfr@gmx.net> - 2017-02-20 10:03 +0100
      Re: [OT] add carriage return to text files dale <dale@dalekelly.org> - 2017-02-20 12:02 -0500

csiph-web