TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: THE NATURAL PHILOSOPHER
date: 2017-04-05 22:25:00
subject: Re: 64Gbyte flash memory

On 05/04/17 22:04, Martin Gregorie wrote:
> On Wed, 05 Apr 2017 20:00:47 +0100, James Harris wrote:
>
>> Notepad uses CRLF line endings. AFAIK, vi uses LF only. How do you deal
>> with that?
>>
> .... but that's a one line fix in vi/vim: 1,$s/\r//

Try

:1,$s/$/\r\n/


(hmm. Is $ the regex for end of line? I hate regex)
> Depends. Its simple for Java because all Java programs, including the
> compiler, don't care whether the linebreak is CR, LF or CRLF. IIRC ftp
> will do that conversion if you use ASCII mode for the transfer.
>
> Otherwise I just run transferred the files through unix2dos or dos2unix
> in the Linux side of the transfer.
>
>


--
If you tell a lie big enough and keep repeating it, people will
eventually come to believe it. The lie can be maintained only for such
time as the State can shield the people from the political, economic
and/or military consequences of the lie. It thus becomes vitally
important for the State to use all of its powers to repress dissent, for
the truth is the mortal enemy of the lie, and thus by extension, the
truth is the greatest enemy of the State.

Joseph Goebbels

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.