X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: GNU sed question Date: Tue, 27 Apr 2010 14:55:29 -0700 (PDT) Organization: http://groups.google.com Lines: 54 Message-ID: <0aa8aea0-9b0c-44ba-a488-c06a720a458d@b6g2000yqi.googlegroups.com> References: <4c64a5b1-bf8a-49e1-843e-9a0594856e82 AT c36g2000yqm DOT googlegroups DOT com> <83mxwt17tq DOT fsf AT gnu DOT org> <5045aa1f-6a1d-4d1a-a1a3-1ae82d412d15 AT z3g2000yqz DOT googlegroups DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1272405329 20999 127.0.0.1 (27 Apr 2010 21:55:29 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Tue, 27 Apr 2010 21:55:29 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: b6g2000yqi.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.22 Version/10.51,gzip(gfe) Bytes: 3747 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, On Apr 26, 3:29=A0am, "Rod Pemberton" wrote: > "Rugxulo" wrote in message > > > 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. =A0I find that > simple text editors and specialized C programs usually work the best. =A0= 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. =A0(I believe you're > aware of it. =A0I've mentioned it a few times here.) =A0It appears to be = version > 1.8. =A0Version 2.1 is available for DOS and Win32: http://web.cecs.pdx.e= du/~kirkenda/ Well, 32-bit is usually a lot faster, but it's indeed larger code. Elvis is great, but apparently the author never bothered using a 32- bit DOS compiler (ahem, DJGPP), so the 2.1 version is horribly useless, IMHO, because it runs out of memory *extremely* fast (esp. when calling help)! So yes, I can (barely) see why you use the older 1.8 version (less bloated). Last I contacted the author a few years ago, I asked him why, and it seemed to be more of a "have no time" issue than anything. EDIT: Even VIM has dropped the 16-bit DOS .EXE in latest 7.2. :-( > I tried a bunch of DOS VI clones some years ago. =A0AIR, most seemed to > support the VI commands correctly. =A0But, EX/ED support was what I wante= d. > AIR, except for ELVIS, many had problems with EX/ED commands. Right, VILE doesn't support a lot of ex commands. Most people don't need ex, they only want vi proper. But like I said, VIM supports Exim, although I admit to not really having used that at all. > AIR, I had some difficulty determining the proper AWK implementations for > various VI commands. =A0There are quite a number of things simple EX/ED > commands can do for which equivalent methods are not documented in the AW= K > cheatsheets. =A0The manuals weren't that helpful either. =A0With trial an= d > error, I came up with conversions that work or should work, at least with > DOS and DJGPP's AWK port... AWK is good for simple things like this (esp. since Google Groups wraps posted code, ugh): awk "length($0) > 70 { print NR }" myfile.c Actually, I'm on a Rexx kick now, and at least two compile with DJGPP (BRexx, Regina). :-)