[NBLUG/talk] Arrays in Bash
William Tracy
afishionado at gmail.com
Fri May 13 11:20:09 PDT 2011
On Fri, May 13, 2011 at 11:13 AM, Ross Thomas <boscorama at fastmail.us> wrote:
> Try using:
> eval echo "\${${i}[2]}"
>
> Bash doesn't seem to like using a variable as an array name.
>
> HTH
>
I just had to reply to say that that solution is both absolutely brilliant
and hilarious.
William Tracy
Work: wtracy at cisco.com
Play: afishionado at gmail.com
Cell phone: (805) 704-0917
Internet phone: (707) 206-6441
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nblug.org/pipermail/talk/attachments/20110513/31f3af90/attachment.htm>
More information about the talk
mailing list