delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2010/04/26/04:45:20

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Rod Pemberton" <do_not_have AT havenone DOT cmm>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GNU sed question
Date: Mon, 26 Apr 2010 04:29:50 -0400
Organization: Aioe.org NNTP Server
Lines: 62
Message-ID: <hr3ir3$kni$1@speranza.aioe.org>
References: <qah3t59tamdcag9gm26mkkhddj96gs984s AT 4ax DOT com> <4c64a5b1-bf8a-49e1-843e-9a0594856e82 AT c36g2000yqm DOT googlegroups DOT com> <hqu6vv$28n$1 AT speranza DOT aioe DOT org> <83mxwt17tq DOT fsf AT gnu DOT org> <hqvuv5$noj$1 AT speranza DOT aioe DOT org> <5045aa1f-6a1d-4d1a-a1a3-1ae82d412d15 AT z3g2000yqz DOT googlegroups DOT com>
NNTP-Posting-Host: pldq+kT97bAAp/ObDwnZyQ.user.speranza.aioe.org
X-Complaints-To: abuse AT aioe DOT org
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1983
X-Notice: Filtered by postfilter v. 0.8.2
X-Newsreader: Microsoft Outlook Express 6.00.2800.1983
X-Priority: 3
X-MSMail-Priority: Normal
Bytes: 3359
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Rugxulo" <rugxulo AT gmail DOT com> wrote in message
news:5045aa1f-6a1d-4d1a-a1a3-1ae82d412d15 AT z3g2000yqz DOT googlegroups DOT com...
> On Apr 24, 6:32 pm, "Rod Pemberton" <do_not_h DOT  DOT  DOT  AT havenone DOT cmm> wrote:
> > "Eli Zaretskii" <e DOT  DOT  DOT  AT gnu DOT org> wrote in message
> > > VI and EDIT are unrelated to Sed.
> >
> > So?
>
> VI typically is the same binary as EX, which is an improved ED.
> [snip history]

...

> P.S. Rod, why not use VIM or VILE if your 16-bit version
> runs out of RAM?

I don't need to handle larger text files that frequently.  I find that
simple text editors and specialized C programs usually work the best.  If I
can't do it with simple text editor commands, then dedicated program.

The VI clone for DOS that I'm using is called ELVIS.  (I believe you're
aware of it.  I've mentioned it a few times here.)  It appears to be version
1.8.  Version 2.1 is available for DOS and Win32:
http://web.cecs.pdx.edu/~kirkenda/

I tried a bunch of DOS VI clones some years ago.  AIR, most seemed to
support the VI commands correctly.  But, EX/ED support was what I wanted.
AIR, except for ELVIS, many had problems with EX/ED commands.

I also tried _many_ VI clones for Windows.  I only found one that could
handle large files: WinVI.  Fortunately, it's very quick too.  But, WinVI's
EX/ED support, as of a few years ago, was completely broken and unuseable.
AIR, none of the basic EX/ED commands worked correctly.  IIRC, you also had
to select EX/ED support via a checkbox.  Since it's EX/ED commands I use,
not VI commands, an otherwise excellent VI implementation was of no use to
me.
http://www.winvi.de/en/

> Oh, and AWK doesn't look too "convoluted", see
> the GAWK manual (quite large and nice!). Or see Eric
> Pement's AWK cheatsheet / one- liners:

Been there.  Done that.  In fact, it seems you mentioned that to me on
comp.unix.shell or alt.lang.awk in 08...  Don't worry, I didn't recall that
either.  :)

AIR, I had some difficulty determining the proper AWK implementations for
various VI commands.  There are quite a number of things simple EX/ED
commands can do for which equivalent methods are not documented in the AWK
cheatsheets.  The manuals weren't that helpful either.  With trial and
error, I came up with conversions that work or should work, at least with
DOS and DJGPP's AWK port...


Rod Pemberton







- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019