Path: csiph.com!xmission!news.alt.net From: dale Newsgroups: comp.soft-sys.octave,comp.graphics.apps.gnuplot,comp.lang.awk Subject: Re: [OT] add carriage return to text files Date: Mon, 20 Feb 2017 12:02:53 -0500 Lines: 38 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Thunderbird/53.0a2 In-Reply-To: Content-Language: en-US Xref: csiph.com comp.soft-sys.octave:96 comp.graphics.apps.gnuplot:3563 comp.lang.awk:6688 On 2/20/17 3:29 AM, Kenny McCormack wrote: > In article , Karl Ratzsch 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
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
-- dale | http://www.dalekelly.org