help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] use variable as array name


From: Eduardo A . Bustamante López
Subject: Re: [Help-bash] use variable as array name
Date: Sat, 3 Jan 2015 20:36:56 -0800
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Jan 03, 2015 at 06:32:25PM -0800, Jesse Molina wrote:
> 
> I found this to be helpful in regards to indirection:
> 
> http://wiki.bash-hackers.org/syntax/pe#indirection
> 
> ONE=1
> VAR=ONE
> echo ${!VAR}
The tricky part of indirection is combining the array indirection with the
${#length} parameter expansion.



reply via email to

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