| Deutsch English Français Italiano |
|
<v766to$3hj2q$1@news.xmission.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.awk
Subject: Which, as noted, is ugly and not AWK (Was: A feature I'd like to see in GAWK...)
Date: Tue, 16 Jul 2024 16:25:28 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <v766to$3hj2q$1@news.xmission.com>
References: <v73pof$3gdp5$2@news.xmission.com> <669683b6$0$713$14726298@news.sunsite.dk>
Injection-Date: Tue, 16 Jul 2024 16:25:28 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3722330"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
Bytes: 1795
Lines: 18
In article <669683b6$0$713$14726298@news.sunsite.dk>,
Mack The Knife <mack@the-knife.org> wrote:
>While this is interesting, it can actually be done very easily from the
>shell level, using process substitution:
>
> awk -f foo.awk <(df -l) <(df)
Which, as noted in the OP, is ugly and not AWK, but rather shell.
(As I said, we all know the workarounds - and we all know they are ugly)
And it doesn't work if you have to calculate the value of the process to
run inside the AWK script (which isn't the case with my "df" example, but
is why I used the phrase "not always sufficient").
--
After 4 years of disastrous screwups, Trump now favors 3 policies that I support:
1) $2K/pp stimulus money. Who doesn't want more money?
2) Water pressure. My shower doesn't work very well; I want Donnie to come fix it.
3) Repeal of Section 230. This will lead to the demise of Face/Twit/Gram. Yey!