Arrays in bash are indexed from 0 (zero based). To print the first element of array use index 0: array=(one two three four) echo ${array[0]}. Output: one.
確定! 回上一頁