code:
arr=(Hello World)
echo ${arr[0]}
results: Hello
${arr[*]} # All of the items in the array
${!arr[*]} # All of the indexes in the array
${#arr[*]} # Number of items in the array
${#arr[0]} # Length of item zero
Aucun commentaire:
Enregistrer un commentaire