Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • 1
    Not to detract from Stéphane's excellent answer below, but the fact that you even need multi-dimensional arrays suggests that you are doing something that shell scripts are not suited to doing (such as processing data rather than executing other programs to process that data) and should probably be using a language better suited to your task - awk, perl, or python for example. The fact that you can wrestle bash into doing something it's bad at doesn't mean that you should. Commented Aug 12, 2023 at 12:55