delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2010/04/24/03:45:22

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: Sat, 24 Apr 2010 03:36:54 -0400
Organization: Aioe.org NNTP Server
Lines: 25
Message-ID: <hqu6vv$28n$1@speranza.aioe.org>
References: <qah3t59tamdcag9gm26mkkhddj96gs984s AT 4ax DOT com> <4c64a5b1-bf8a-49e1-843e-9a0594856e82 AT c36g2000yqm 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: 2064
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:4c64a5b1-bf8a-49e1-843e-9a0594856e82 AT c36g2000yqm DOT googlegroups DOT com...
>
> P.S. I love GNU sed, but in my experience it's pretty darn
> slow on big files.
>

I've not used it.  I have need of VI, occasionally.  I prefer DOS EDIT, but
it and other DOS editors seem unable to do two things that VI can do.  VI,
via EX/ED commands, has a way to specify that you want something inserted at
the beginning and end of lines.  Every now and then, the DOS clone of VI
that I use, is insufficient.  It won't handle large files.  AWK will handle
the larger files just fine.  But, who wants to code up convoluted awk
scripts?  Why learn awk when you already know equivalent EX/ED commands for
VI?  Another solution, splitting and unsplitting the file prior to and after
processing is an "undesirable test of patience and will".  So, I wrote
myself a small, personal utility, that's still in a very rough, in-progress
form, which converts some common EX/ED commands to their equivalent AWK
scripts.  Very nice!!!  Smooth...  But, I still haven't tested some of the
conversions thoroughly, yet.


Rod Pemberton


- Raw text -


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