Arrays in Bash

Arrays is useful when it comes to data processing. Using Arrays in Bash is quite easy, and most importantly is to get your job done with the data loaded into the Arrays.

Declare and Assign Value into Array

To declare an array in bash,

To assign values into arrays

To assign multiple values into arrays

To dump command line data into arrays

Output Values from Arrays

To output a value from an Array

Loop through an Arrays and Output all the values

For more advance scripting on Arrays, visit