As part of this article, we are going to discuss the following pointers which are related to Two-Dimensional Array in C#. How do I split a string on a delimiter in Bash? Arrays Bash provides one-dimensional indexed and associative array variables. EX: 1 2 Bash provides one-dimensional array variables. How to Declare Array in Shell Scripting? The two-dimensional array is an array of arrays, so we create an array of one-dimensional array objects. What I am after is a for loop that when the array is in position 1, a particular variable is set to the value of position 1 in array 2 For example one index represents the rows and other represnts the columns. Author: Vivek Gite Last updated: October 27, 2009 12 comments. In row major order representation elements in each row of a matrix are progressively stored in array indexes in a sequential manner. Arrays in the shell must be single dimensional. Such arrays are called as multidimensional arrays. If the matrix has a size m by n, so i goes from 0 to (m-1) and j from 0 to (n-1). The 2Dimensional array also called as rectangular array. Now that I have given you a really quick primer on regular arrays, let's take a look at multi-dimensional arrays. I don't want to open two for loops and assign one by one. There is no maximum limit on the size of an array, nor any requirement that members be indexed or assigned contiguously. link brightness_4 code