bash- array

bash support one-dimensional array (not support multi-dimensional array), and do not limit the size of the array. Subscript array elements are numbered starting from zero. To obtain the use of elements in the array subscript or index may be an integer arithmetic expression

Get all the array of all the elements

 Gets the number of elements

 Get element subscript 2 

3

 Gets the last element

 Assignment to assignment to a string array vs

 Automatically create an array

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/cc1994/p/12015727.html
Recommended