Sujet : Re: A feature I'd like to see in GAWK...
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.lang.awkDate : 17. Jul 2024, 13:23:00
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <v78d34$3iloe$2@news.xmission.com>
References : 1 2
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
v76jr4$tu3$1@nnrp.usenet.blueworldhosting.com>,
Arti F. Idiot <
addr@is.invalid> wrote:
On 7/15/24 12:28 PM, Kenny McCormack wrote:
I think something like the above would be more in line with the sort of
things I'd like to see in GAWK.
>
+1 ; great idea.
Well, I think so. The idea is that you shouldn't have to give up the most
intrinsic part of AWK (the pattern/action paradigm) just because your input
isn't a named (i.e., on the command line) file.
I think of it as "rehabilitating getline". Bringing it back into the fold,
rather than exiling it to the sidelines.
Note also that my "pipeline" extension only handles the case of a simple
process (either input or output - i.e., like AWK's "getline" and "print"
with "|" redirection). It doesn't handle any of the other variations of
getline/print - such as the ones that interface with network sockets. It
would be nice if a built-in approach did those things as well (and better
than my extension does).
-- The randomly chosen signature file that would have appeared here is more than 4lines long. As such, it violates one or more Usenet RFCs. In order to remainin compliance with said RFCs, the actual sig can be found at the following URL: http://user.xmission.com/~gazelle/Sigs/FreeCollege