bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] Is there a way to access associative array from the environme


From: Peng Yu
Subject: [bug-gawk] Is there a way to access associative array from the environment?
Date: Wed, 9 Mar 2016 22:31:45 -0600

Hi, The following command will not access "a" in $MYARRAY. Is there a
way to do so in awk?

declare -A MYARRAY
MYARRAY=([a]=x [b]=y)
awk -e 'BEGIN { print ENVIRON["MYARRAY"]["a"] }'

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]