[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash
From: |
Greg Wooledge |
Subject: |
Re: Bash |
Date: |
Wed, 15 Apr 2020 14:46:58 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Wed, Apr 15, 2020 at 02:38:07PM -0400, Tim Visher wrote:
> At least that but also reading rows into an array or while reading over a
> resultset kind of thing. I don't know if newer versions of bash than I'm
> used to support multi dimensional arrays but that would be cool as
> well. ¯\_(ツ)_/¯
They don't. Multi-dimensional arrays have to be emulated using tricks.
The most common tricks are to use an associative array with keys of the
form "$i,$j" (or similar), or to use indexed arrays with keys of the
form "i * 1000 + j" (or similar).
- Re: Bash, (continued)
- Re: Bash, Chet Ramey, 2020/04/13
- Re: Bash, Tony Esposito, 2020/04/14
- Re: Bash, Chet Ramey, 2020/04/14
- Re: Bash, Tim Visher, 2020/04/15
- Re: Bash, Jeffrey Walton, 2020/04/15
- Re: Bash, Chet Ramey, 2020/04/15
- Re: Bash, Jeffrey Walton, 2020/04/15
- Re: Bash, Greg Wooledge, 2020/04/15
- Re: Bash, Chet Ramey, 2020/04/15
- Re: Bash, Tim Visher, 2020/04/15
- Re: Bash,
Greg Wooledge <=
- Re: Bash, Stephane Chazelas, 2020/04/19