Groups | Search | Server Info | Login | Register


Groups > comp.soft-sys.octave > #96

Re: [OT] add carriage return to text files

From dale <dale@dalekelly.org>
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 12:02 -0500
Message-ID <a4bt0u.iou.19.1@news.alt.net> (permalink)
References <a49sgg.tnn.19.1@news.alt.net> <o8e7ss$50d$1@solani.org> <o8e9co$2rj$2@news.xmission.com>

Cross-posted to 3 groups.

Show all headers | View raw


On 2/20/17 3:29 AM, Kenny McCormack wrote:
> 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!
> 

for some reason they need the carriage returns in a <div> code block in 
HTML on Edge or Internet Explorer, I don't currently have an example to 
show, but will be back, might be a CSS configuration for <div>

-- 
dale | http://www.dalekelly.org

Back to comp.soft-sys.octave | Previous | NextPrevious 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 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 dale <dale@dalekelly.org> - 2017-02-20 12:02 -0500

csiph-web