...

/

Bash arrays

Bash arrays

Bash only provides one-dimensional indexed variables (arrays). The declare builtin command will explicitly declare an array. There is no maximum limit on the size of an array, nor any requirement that members be indexed or assigned contiguously!

Array example: #

Let’s construct an array containing three elements:

Access this course and 1400+ top-rated courses and projects.