Re: Storing a Linux shell command into an AWK variable

Liste des Groupes 
Sujet : Re: Storing a Linux shell command into an AWK variable
De : toylet.toylet (at) *nospam* gmail.com (Mr. Man-wai Chang)
Groupes : comp.lang.awk
Date : 07. Mar 2024, 11:29:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <usc4tk$10akp$1@toylet.eternal-september.org>
References : 1 2
User-Agent : Mozilla Thunderbird
On 6/3/2024 9:03 pm, Ed Morton wrote:
 Do not do this. You wouldn't do it in shell (see
https://mywiki.wooledge.org/BashFAQ/050) and you definitely must not do
this in awk as that'll have all of the issues associated with storing
code in a shell variable PLUS additional issues of robustness and
efficiency related to spawning a subshell to call an external tool from awk.
I undertsand the limitations of Awk. But I was wondering about how far I could go. :)

Whatever it is you're trying to do, post a new question with a minimal
complete, verifiable example (see
https://stackoverflow.com/help/minimal-reproducible-example for what
that means) so we can help you do it the right way.
Already done so. My question in the end was more about escaping special/reserved symbols.

Date Sujet#  Auteur
7 Mar 24 * Re: Storing a Linux shell command into an AWK variable5Mr. Man-wai Chang
7 Mar 24 +* Re: Storing a Linux shell command into an AWK variable3gazelle@shell.xmission.com (Kenny McCormack)
7 Mar 24 i+- Re: Storing a Linux shell command into an AWK variable1Janis Papanagnou
7 Mar 24 i`- Re: Storing a Linux shell command into an AWK variable1Mr. Man-wai Chang
8 Mar 24 `- Re: Storing a Linux shell command into an AWK variable1Ed Morton

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal