Bash Arrays

“If you’re used to a ‘standard’ *NIX shell you may not be
familiar with bash’s array feature. Although not as powerful as
similar constructs in the P languages (Perl, Python, and PHP) and
others, they are often quite useful.

“Bash arrays have numbered indexes only, but they are sparse, ie
you don’t have to define all the indexes. An entire array can be
assigned by enclosing the array items in parenthesis…”


Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis