Bash Arrays: Difference between revisions
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
==Initialization== | ==Initialization== | ||
a[0]="something" | |||
==Use Cases== | ==Use Cases== | ||
=Associative Arrays= | =Associative Arrays= |
Revision as of 21:21, 23 February 2018
Internal
Indexed Arrays
External
- http://www.gnu.org/software/bash/manual/html_node/Arrays.html#Arrays
- http://tldp.org/LDP/abs/html/arrays.html
Overview
bash indexed arrays are 0-based and unidimensional. No explicit declaration is necessary if at least one element is initialized as described below:
Declaration
Initialization
a[0]="something"