|
From: | John Kearney |
Subject: | Re: [Help-bash] indirection for arrays |
Date: | Sat, 05 May 2012 22:35:39 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 |
Am 05.05.2012 22:16, schrieb Bill Gradwohl:
Via a web site reference, Dan Douglas (Thank You) provided something akin to this:off the top of my head you can also do this sort of thing. assignment is easier than recovery. since something like bash 3.1 ish printf -v "${1}" "%s" "Value" printf -v "${1}[1]" "%s" "Value" since something like bash 4.2 ish, declare -g "${1}=jkjoiij" again if your working with integers : $(( ${1}[1]=3 )) let "${1}[1]=4" |
[Prev in Thread] | Current Thread | [Next in Thread] |