The array index ([])

This points us to the object located into the array at the index specified between the brackets:

fruit=(apple banana lemon) ; echo ${fruit[1]}
banana

We will see what an array is later on, as of now, just bear in mind that an array index starts from 0, so 1 is the second element into it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.37.68