comp.lang.awk FAQ
This material of this faq originates from the comp.lang.awk FAQ that you can find there: * http://www.faqs.org/faqs/computer-lang/awk/faq/ . . . or environment variables in an awk script? === Shells <include "Shells"> [[http://awk.freeshell.org/?action=edit;id=Shells| . . .
8K - last updated 2009-03-04 12:42 UTC by pgas
comp.lang.awk FAQJapanese
This material of this faq originates from the comp.lang.awk FAQ that you can find there: * http://www.faqs.org/faqs/computer-lang/awk/faq/ . . . or environment variables in an awk script? === Shells <include "ShellsJapanese"> [[http://awk.freeshell.org/?action=edit;id=ShellsJapanese| . . .
4K - last updated 2008-11-24 09:01 UTC by pgas
EnvVarGeneral
**Answer 1:** On Unix, use "alternate quoting", e.g. {{{ awk -F: '$1 ~ /'"$USER"'/ {print $5}' /etc/passwd . . . up a single, long script argument, because Unix shells break arguments on spaces (unless they are `escaped' . . . }}} this also works with ksh and some other shells. The first approach is extremely portable, but . . .
3K - last updated 2011-07-05 09:31 UTC by pgas
PassingVariables
<toc> === Shells <include "Shells"> [[http://awk.freeshell.org/?action=edit;id=Shells| Edit . . .
1K - last updated 2008-11-19 07:47 UTC by pgas
PassingVariablesToTheParentProcess
How can I put values into the environment of the program that called my awk program? Short answer, you . . . etc rm /tmp/awk.$$ }}} With many shells, you can use `eval', but this is also cumbersome: . . .
1K - last updated 2008-11-19 07:45 UTC by pgas
PassingVariablesToTheParentProcessJapanese
How can I put values into the environment of the program that called my awk program? Short answer, you . . . etc rm /tmp/awk.$$ }}} With many shells, you can use `eval', but this is also cumbersome: . . .
1K - last updated 2008-11-24 08:05 UTC by pgas
Shells
The examples using quoting are intended for use with any standard (sh-compatible-quoting) Unix shell. . . . `awk -f filename.awk' instead. Non-sh-compatible shells will require different quoting. If you're not . . .
1K - last updated 2008-11-19 07:37 UTC by pgas
ShellsJapanese
The examples using quoting are intended for use with any standard (sh-compatible-quoting) Unix shell. . . . `awk -f filename.awk' instead. Non-sh-compatible shells will require different quoting. If you're not . . .
1K - last updated 2008-11-24 08:04 UTC by pgas
8 pages found.