|
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
[Prev in Thread] | Current Thread | [Next in Thread] |